Convert UTF8 string to ASCII string (OpenInsight 32-Bit)
At 11 FEB 2005 10:10:54AM Enrique Murphy wrote:
Hi. I am working in UTF-8 mode, but I need to export data to a TXT file in ASCII, regarding spanish chars as Ñ,ñ,á,é,í,ó,ú, , etc.
Is there a way to acomplish this in OI 7.1?. I have seen UTF8_ANSI, and ANSI_UTF8, but I don't see any ANSI_ASCII or UTF8_ASCII.
At 11 FEB 2005 10:22AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Enrique,
Use UTF8_ANSI and then use the CharToOem Windows API function to convert to your basic Arev-style ASCII string.
World Leaders in all things RevSoft
At 11 FEB 2005 10:22AM [email protected] wrote:
We use OemToChar
(BOOL OemToChar( LPCSTR lpszSrc,
LPTSTR lpszDst);
and CharToOem
BOOL CharToOem( LPCTSTR lpszSrc,
LPSTR lpszDst);
exported out of USER32
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 11 FEB 2005 10:23AM [email protected] wrote:
Next time we call across the office
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 11 FEB 2005 10:23AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Snap! :)
At 12 FEB 2005 10:53AM Enrique Murphy wrote:
Thanks!. I will try this. Actually, I was temporarily solving it by first converting to ANSI, and then mapping hexa ANSIs to hexa ASCII using convert. But this has to be done taking into account every single char that may appear!.
At 12 FEB 2005 10:55AM Enrique Murphy wrote:
Sorry, I didn't understand the "Next time we call across the office"
At 12 FEB 2005 11:04AM [email protected] wrote:
We both posted the same response within 20 seconds - it would have been better if only one of us posted, so we could have called out "I'm answering Enrique noone else bother".
The Sprezzatura Group Web Site
World Leaders in all things RevSoft
At 14 FEB 2005 08:46AM Enrique Murphy wrote:
OK. It is always good to have people fighting over to answer your post first!. I will give you both another chance to win soon, and we will see who is the best…