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.