[Qt-interest] [SOLVED] Re: How do qt tell between Unicode and Ascii ?
Aaron Lewis
aaron.lewis1989 at gmail.com
Mon Mar 8 09:48:09 CET 2010
Andreas Pakulat wrote:
> On 06.03.10 20:14:08, Aaron Lewis wrote:
>
>> I was wondering how do i detect a string is Unicode or Ascii ,
>>
>
> A QString is always unicode. If you want to know wether it only holds
> characters that fit into the ascii range you'll have to iterate over
> them and check wether they're in the 0 <> 127 range.
>
> Andreas
>
>
Ah , Thanks Andreas , i should check the range.
--
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4r0n on freenode
More information about the Qt-interest-old
mailing list