News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

utf8

Started by czerny, April 24, 2013, 10:48:39 PM

Previous topic - Next topic

czerny

Here is a little trap I fell in today:
This is a valid C string.
"Hall\xc3\xb6chen"

Problem: Pelles C reads 'H' 'a' 'l' 'l' '\xc3' '\xb6c' 'h' 'e' 'n'

I had to code:
"Hall\xc3\xb6" "chen"
to get it right.