Try encoding your strings in UTF-8, there are many libraries that can do the
job for you (like GLib).
Daniel K. O.
> -----Mensagem original-----
> De: dev...@li...
> [mailto:dev...@li...]Em nome de Jonathan M.
> Gumaroy
> Enviada em: sexta-feira, 7 de março de 2003 03:47
> Para: dev...@li...
> Assunto: [Dev-C++] String encoding between Server-Client connection
>
>
>
> Hello Gurus,
>
> For days, I have been trying to find a solution about
> a bug on my prototype. As all of you can see, the Client
> is a VC++ implementation that sends a japanese message
> string to a Linux C++ Server. The connection seems correct but
> during the time I try to display the string message, it
> is corrupted. Please take note that both OS supports
> Japanese encoding as its default locale. When sending back
> the string message to the VC++ Client, the Japanese string
> message is displayed correctly. My guess is that Linux can't
> handle Window's Japanese encoding (SJIS). Does any of you
> encountered the same problem before? It would be a great
> help for me for any information from you. :)
>
> Thank you very much.
>
> --
> Jonathan.
_______________________________________________________________________
Busca Yahoo!
O serviço de busca mais completo da Internet. O que você pensar o Yahoo! encontra.
http://br.busca.yahoo.com/
|