It is currently Mon Nov 19, 2018 12:29 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7
Author Message
 Post subject: Re: Support for Ascii compilation ends after the next LTS cy
PostPosted: Wed Nov 04, 2015 5:35 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3285
Location: Berlin, Germany
mhs wrote:
Windows uses UTF-16 internal for API calls, so I thought PB uses also UTF-16? Am I wrong?

Fred wrote:
For the record, PB uses UCS2 string encoding internally when unicode mode is ON (it doesn't support multibyte UTF16 encoding).

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: Support for Ascii compilation ends after the next LTS cy
PostPosted: Wed Nov 04, 2015 5:47 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3264
Location: Netherlands
Thorium wrote:
Would be even better if PB would use UTF-16 internaly instead of UCS-2.

It would have the same problem you ran into with UTF-8 (making some string procedures more complicated and most likely slower).
It also would break existing forum code which uses pointers to unicode characters assuming a unicode character always takes up two bytes.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Support for Ascii compilation ends after the next LTS cy
PostPosted: Wed Nov 04, 2015 6:32 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Aug 15, 2009 6:59 pm
Posts: 1249
wilbert wrote:
Thorium wrote:
Would be even better if PB would use UTF-16 internaly instead of UCS-2.

It would have the same problem you ran into with UTF-8 (making some string procedures more complicated and most likely slower).
It also would break existing forum code which uses pointers to unicode characters assuming a unicode character always takes up two bytes.

I know. The reason is WinAPI as mhs and Little John wrote. With UCS-2 there is not a 100% compatiblity to the WinAPI.


Top
 Profile  
Reply with quote  
 Post subject: Re: Support for Ascii compilation ends after the next LTS cy
PostPosted: Wed Nov 04, 2015 6:52 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 5:21 pm
Posts: 5769
Location: Germany
See here: viewtopic.php?p=471353#p471353

_________________
quidquid Latine dictum sit altum videtur


Top
 Profile  
Reply with quote  
 Post subject: Re: Support for Ascii compilation ends after the next LTS cy
PostPosted: Sun Apr 24, 2016 3:05 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 22, 2009 3:48 am
Posts: 475
Location: china
hope:
1 add AsciiToUni(),UniToAscii(),...
2 string is data,isnot string
3 AsciiToUni(),UniToAscii(),...result immobile data
4 Strings functions no only for string,Example:
FindString() changeTo FindData(a.data,b.data,wordBeyes)
Flag:wordBeyes=1 or 2 or 3 or 4 or 5 or ...
use Strings functions,you must know your data Structure
==============
other Note:Unicode in win32.hlp[1997]
Example:

EM_SETSEL
Windows NT: Yes
Win95: Yes
Win32s: Yes
Import Library: -
Header File: winuser.h
Unicode: No
Platform Notes: None

EM_EXSETSEL
Windows NT: Yes
Win95: Yes
Win32s: No
Import Library: -
Header File: richedit.h
Unicode: No
Platform Notes: None

_________________
my pb for chinese:
http://ataorj.ys168.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye