[jdev] Using german umlauts and other special characters in jabber client
Jana von dem Berge
jvdberge at web.de
Fri Oct 15 05:28:11 CDT 2004
OK, thanks, know I understand!
Jabber software development list <jdev at jabber.org> schrieb am 15.10.04 12:09:31:
>
> On Fri, 15 Oct 2004, Jana von dem Berge wrote:
>
> > Thancs for the reply! But I have not declared another encoding. I think
> > UTF-8 "knows" the german umlauts, is that wrong?
>
> Using this
> >>> recv(j->fd, buf, sizeof(buf)-1, 0); (language c)
> you read an UTF-8 encoded string into buf. Then you probably do a printf
> or something. However, printf doesn't know anything about encodings.
> Therefore, the UTF-8 encoded string will be written without any conversion
> to a console that probably doesn't use the UTF-8 encoding which breaks all
> special characters.
>
> BTW in more modern programming languages (for example Java) the String
> variable type/class knows its encoding. Therefore, using these languages
> such problems do not arise.
>
> Regards
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201
More information about the JDev
mailing list