473,322 Members | 1,425 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,322 software developers and data experts.

Reading unicode characters from file in C

Hi

I need to read Unicode characters from a file. The only thing I need to do from them is to extract their Unicode number.

For example if file has ü I need to extract its corresponding Unicode number.


Please help.

Thanks
Feb 28 '12 #1
3 2042
weaknessforcats
9,208 Expert Mod 8TB
The number you read is the Unicode number. And it may be compressed/encoded.

I suggest you read up on this becase there are various types of Unicdode encoding based on the OS you are using. Reading Unicode os way too large a subject to be discussed in a posting thread.

First, read the docs for your OS.
Second, write a small test program to process an array of your Unicdoe characters,
Third, change the program to fill the array from a disc file.

Post again when you have some actual code.
Feb 28 '12 #2
Hi

I am using Code Block IDE with Mingw Compiler on Windows XP 32 bit. I am working on small project in which we are reading from text file. We were doing some processing based on ASCII value of those characters. Now requirement has changed, the file may contain letters from other languages also,which is not there in ASCII. So I just need a way to read those characters from file and get their UNICODE so that we can continue processing based on UNICODE.
Feb 29 '12 #3
weaknessforcats
9,208 Expert Mod 8TB
Unicode operations in Windows are documented in MSDN.

Start here: http://msdn.microsoft.com/en-us/libr...(v=vs.71).aspx
Mar 1 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stanislaw Findeisen | last post by:
Does anyone know how to create file shortcuts in Windows? The only way I know is like: --------------------------------------------------------------- import win32com.client ...
5
by: Borko | last post by:
hi I am having problems getting unicode characters into VB. Using VB6 (sp3) and Access 2000 Characters are displayed correctly in Access, just when I use ADODB (2.7) to read them in VB i get ?...
5
by: Jamie | last post by:
I have a file that was written using Java and the file has unicode strings. What is the best way to deal with these in C? The file definition reads: Data Field Description CHAR File...
3
by: Kidus Yared | last post by:
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or...
3
by: john | last post by:
I need to produce a RTF-document which is filled with data from a database. I've created a RTF-document in WordPad (a template, so to speak) which contains 'placeholders', for example '<dd01>',...
5
by: Matthew Thompson | last post by:
I have as issue I am finding hard to research. I use a stored proecdure in SQL 2000 to provide search capability for our database of news stories and articles. Being an international magazine...
5
by: abhi147 | last post by:
Hi , I want to pass a string of unicode characters to a function . The string is a 4 bit unicode character string like"\xab\x0a\x0c\x0d" . These chars get converted to their ascii equivalent ....
5
by: Josh | last post by:
Can anyone tell me how do we use Unicode characters in C++ ????
8
by: Mariii | last post by:
Hello All! I have a problem with reading unicode txt file from VC++ project. I despaired already. :( May be you could help me? Thank a lot in advance, Marina
2
by: JimmyKoolPantz | last post by:
We purchased som software for encoding a barcode. We want to automate the process of converting a number to a readable barcode. However, I am having a few issues. The file that the barcode...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.