Solved

converting UTF8 <---> MBCS in Hebrew under Unix

Posted on 2002-03-24
3
968 Views
Last Modified: 2013-12-13
Hello all!
I need help!
We have a software that works on the windows (the application) and on the unix (the server - DB oracle).
We need to save strings in UTF8 format. We have no problems doing that @ the Window's side: we can convert from MBCS to UTF8 in order to save the string in the DB. And on loading the string from the DB we have no problems to convert back from UTF8 to MBCS in order to display it. We do it with a written function, that one of its params is a locale: the language sign. In the Windows, we don't have to give the locale and the funciton using the default (?) which works! In the Unix, no matter what we do - the function returns error (ether the locale is missing - when we don't give - or the locale is wrong - when we give the hebrew one).
We REALLY don't care using other function. We jusy want to convert UTF8 to/from MBCS formats for hebrew strings under unix.
Please H E L P!
0
Comment
Question by:osnat
3 Comments
 
LVL 8

Accepted Solution

by:
JIEXA earned 200 total points
ID: 7295146
Osnat, there is a `iconv' utility on Unices
(Solaris, for example)
It has a plenty of conversion tables.

For example,
  iconv -f 8859 -t 646fr < file_in > file_out

Also, there are iconv_open(), iconv_close().

See the man pages.


P.S. Maybe, there is no such conversion.
  You may need to use transitive scheme:
  UCS-2 <--> 8859-8 <--> UTF-8
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tidtcpserver connection lost handle 2 84
recursion example 16 126
Rubik's Cube Code for Effective Presentation 3 54
Advice on Xojo as a development tool over VB. 4 55
This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question