On 12 October 2014 15:18, Man-wai Chang <[email protected]> wrote:
> VFP 6 does NOT support SYS(3101,65001) as in VFP 9. Fine.
>
> Now I have a file temp.txt containing a **Unicode string**.
> What happened when I run m.xx=filetostr("temp.txt") in VFP 6?

I'm guessing you would see the UTF8 codes in your string.

For example:

"Euro symbol is €"

would be read as

"Euro symbol is âR¬"

The 3 characters at the start indicate a UTF8 string (0xEF, 0xBB, 0xBF).
The Euro symbol in UTF8 is 0xE2, 0x82, 0xAC

Note:
I am using Windows Latin code page 1252, other code pages will show
different characters.

> Is there a equation explaining that conversion?
> Can I undo the "damage" caused by the conversion?

It depends what you are doing with it.  An ActiveX control *might*
understand this as a UTF8 string?

To be honest, you are probably better learning a Unicode aware language!
Dot net & Java use UTF16 internally for all strings.

-- 
Paul

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cadwx0+ls7ehox__qg8vhywgtoafsphu064kzsk9z1onlk_m...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to