Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2002-03-24
3
971 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

829 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