Re: convert GB to Big5

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Try Google search for

"#define LCMAP_TRADITIONAL_CHINESE"

Leonid

"King Pi" <piking@xxxxxxxxxxx> wrote in message
news:%23dUUD9s6FHA.808@xxxxxxxxxxxxxxxxxxxxxxx
>I found out I can use strconv() for converting GB to unicode and then
>converting it to Big5.
> However, the result is imcomplete. Some characters becomes "?".
> It seems that I need to map the unicoded GB to unicoded Big5 before
> converting to ANSI Big5.
> LCMapString in Win32 API should do it.
>
> My problem is I do not know how to call it!
> Here's what I think:
> DECLARE integer LCMapString IN WIN32API integer, long, string, integer,
> string @, integer
>
> s = STRCONV(m.cString, 5, 936,1)
> buf = SPACE(10)
> n = LCMapString(0x0804,****,s, LEN(s), @buf, 10)
>
> What should I place in ****? MSDN only shows some option macros like,
> LCMAP_TRADITIONAL_CHINESE, but I cannot find the value it exactly
> represents....
>
> p.s. I am using VFP9
>
> Please help.
> Thanks
>


.



Relevant Pages

  • Re: Unicode String Parameters in DLLs
    ... > NOT Unicode, so you might have heard some stuff about that. ... > One thing to watch out for is if your DLL routine puts a zero byte at the ... > string ); it does not terminate the string. ... >> We are converting our application to work with Unicode. ...
    (microsoft.public.word.vba.general)
  • convert GB to Big5
    ... I found out I can use strconvfor converting GB to unicode and then ... It seems that I need to map the unicoded GB to unicoded Big5 before ... DECLARE integer LCMapString IN WIN32API integer, long, string, integer, ...
    (microsoft.public.fox.helpwanted)
  • Re: Unicode vs UTF-16 vs UTF-8
    ... interface is over the HTTPD web server, and a web browser on a separate ... The decision was to NOT work with unicode except on the ... when I use APIs that require a string such as a filename for FTP? ... lot of network stuff is constantly converting back and forth. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Outlook is not Unicode compliant, is it?
    ... My question is then whether Outlook 2003 saves me from ... doing the string conversion since it supports Unicode. ... > sets and language encodings by converting Unicode to an 8-bit string encoded ...
    (microsoft.public.outlook)
  • Re: Unicode conversion
    ... A unicode is two bytes, so converting it to that will in my idea not help you. ... Still have to read into a string then decode. ... > Imports System.Web ...
    (microsoft.public.dotnet.languages.vb)