How to convert ANSI Windows UTF-8 to DOS encoding?
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
How to convert ANSI Windows UTF-8 to DOS encoding?
How to convert ANSI Windows UTF-8 to DOS encoding?
ConvToOemCP() did not help
ConvToOemCP() did not help
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
you can try Xbase++Eugene Lutsenko wrote:How to convert ANSI Windows UTF-8 to DOS encoding?
ConvToOemCP() did not help
Code: Select all
Unicode2Str()
Str2Unicode()
Code: Select all
cAnsiToUtf8( cAnsi ) -> cUtf8
cUtf8ToAnsi(cUtf8) -> cAnsi
cOemToUtf8(cOem) -> cutf8
cUtf8ToOem(cUtf8) -> cOem
cSzWide2Ansi( <cUnicodeStr> ) -> cAnsiStr
cSzAnsi2Wide( <cAnsiStr> ) -> cUnicodeStr
greetings by OHR
Jimmy
Jimmy
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
What is Unicode clear, and what is Str2?
Unicode2Str()
Str2Unicode()
Unicode2Str()
Str2Unicode()
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
Unicode2Str() and Str2Unicode() is wrong way. Unicode is an UTF-16 string, not UTF-8.
Piotr
Piotr
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
Functions do not work
Some Other Idea
Some Other Idea
Nolberto Paulino
Regards
Regards
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
Functions do not work
Some Other Idea
Some Other Idea
Nolberto Paulino
Regards
Regards
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
As Jimmy wrote, use ot4xb: ConvToOemCP(cUtf8ToAnsi(cUtf8))
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
Thanks for answering Wolfgang Ciriack
but I have the same problem attached this the sample.
but I have the same problem attached this the sample.
Nolberto Paulino
Regards
Regards
Re: How to convert ANSI Windows UTF-8 to DOS encoding?
Nolberto Paulino,
Did you find a solution for UTF-8?
xBase have any function to do this conersion?
Did you find a solution for UTF-8?
xBase have any function to do this conersion?
Pedro Alexandre