Encoding a spanish character

S

Sean Berry

Forgive me, I am not very experience in C.

In Java, if I want to encode a special character (a tilde ~ in this case) I
can use unicode value /u00F1.

How can I do this is C. I tried doing this, but got a warning "unknown
escape sequence \u".

I tried making the unicode with hex values, but no good there either. Could
someone point me in the right direction?

Thanks
 
B

Ben Pfaff

Sean Berry said:
In Java, if I want to encode a special character (a tilde ~ in this case) I
can use unicode value /u00F1.

How can I do this is C. I tried doing this, but got a warning "unknown
escape sequence \u".

I'd guess that \xf1 is what you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,371
Latest member
Brkaa

Latest Threads

Top