Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Utf-8 encoding and Vfp
Message
From
06/11/2001 12:49:04
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
06/11/2001 12:15:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00577902
Message ID:
00578095
Views:
85
Sorry Dimitris has Jim said this only work in VFP7 I sometimes forget that there are people that didn't upgrade to VFP7.
Perhaps this is the right time for you to upgrade to VFP7

>I have test the code :
>*
>lcstr = STRCONV("È", 1) &&IF YOU CAN TURN EXPLORERS ENCODING TO GREEK WINDOWS, YOU SHOULD SEE THE GREEK CHARACTER THETA
>lcstr = STRCONV(lcstr, 9) &&I GET THE ERROR : FUNCTION ARGUMENT VALUE, TYPE OR COUNT IS INVALID
>
>Dimitrios
>
>>see the bellow code:
>>
>>lcstr = STRCONV(lcstr, 1) && convert single-byte string to double-byte string
>>lcstr = STRCONV(lcstr, 9) && convert double-byte string to UTF-8
>>lcstr is now UTF-8
>>
>>
>>>Thank you both.
>>>
>>>I tried to use this function but I have not succeeded.
>>>
>>>Here is the exact problem :
>>>I want to produce an xml document which will be in utf-8 encoding. Utf-8 is a unicode encoding as is utf-16. Utf-8 and utf-16 is a representation of unicode characters using one or more bytes. The first 127 characters of utf-8 are represented by the same bytes as ascii. Thats why you never have problems with utf-8 and pure latin characters. Windows 98 uses for greek characters the windows-1253 CodePage which is the default codepage in my pc.
>>>
>>>Then i want to convert the greek characters to utf-8 encoding.
>>>
>>>Dimitris
>>>
>>>>>Hello,
>>>>>Is it possible to encode a string from a local windows or other code page (i.e. windows-1253) to utf-8 with out going via the MS xml parser ??
>>>>>
>>>>>Thank You
>>>>
>>>>From the manual: STRCONV() "Converts character expressions between single-byte, double-byte, UNICODE, and locale-specific representations.".
>>>>
>>>>What I don't quite understand is whether utf-8 the standard (default) Unicode codepage, or not.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform