473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Encoding a spanish character

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
Nov 14 '05 #1
2 1762
"Sean Berry" <se********@cox.net> writes:
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.
--
"A lesson for us all: Even in trivia there are traps."
--Eric Sosman
Nov 14 '05 #2

"Ben Pfaff" <bl*@cs.stanford.edu> wrote in message
news:87************@benpfaff.org...
"Sean Berry" <se********@cox.net> writes:
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.


That is exactly what I wanted. Thanks for the help.
--
"A lesson for us all: Even in trivia there are traps."
--Eric Sosman

Nov 14 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: poisondart | last post by:
Is there a predefined entity set for Spanish accents? I know that I could just easily make one, except that I intend to do this for other languages in the future, which may have more accents than...
7
by: solartimba | last post by:
I need to read Spanish words from a file and print them to the screen. Is there a C++ header file that allows foreign words? Is the problem C or the OS? (I am the only person that will use this...
37
by: chandy | last post by:
Hi, I have an Html document that declares that it uses the utf-8 character set. As this document is editable via a web interface I need to make sure than high-ascii characters that may be...
5
by: Hardy Wang | last post by:
Hi, I have following code: Encoding mode; // Encoding.Default or Encoding.UTF8 FileStream sb = new FileStream(fullPathAndFileName, FileMode.Create); StreamWriter sw = new StreamWriter(sb, mode);...
9
by: Mark | last post by:
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the...
1
by: Chris Welch | last post by:
I'm having a problem with double encoding on my page which is localized in both English and Spanish. I try to set Image1.AlternateText = "B&Uacute;SCAR", and when the page displays the alt...
3
by: leticia larrosa | last post by:
Hi, I try to read a file that have 8 bit character, but contain some character whose code is more than 128 (spanish character). When I read this file using ASCII (Dim oRead As StreamReader =...
2
by: pramod | last post by:
Hi I am facing the problem while inserting the spanish characters in the DB2 UDB v8.2 database. We are pulling the data from SQL server through informatica and then pushing the same in the DB2...
3
by: Joshua Stewart | last post by:
Hi, I am trying to characterise a problem I am seeing on our C#/C++ xml driven application. We have recently added some basic Spanish language support to our application, but it seems that there...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.