Pelles C forum

C language => Expert questions => Topic started by: czerny on April 24, 2013, 10:48:39 PM

Title: utf8
Post by: czerny on April 24, 2013, 10:48:39 PM
Here is a little trap I fell in today:
This is a valid C string.
Code: [Select]
"Hall\xc3\xb6chen"
Problem: Pelles C reads 'H' 'a' 'l' 'l' '\xc3' '\xb6c' 'h' 'e' 'n'

I had to code:
Code: [Select]
"Hall\xc3\xb6" "chen"to get it right.