Solved

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries email authority 6 90
How to call a web service and get the results posted in a form in PHP 9 78
asp Google Map 2 62
Mutiple Folder view (5 Folder view) 3 52
This is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

749 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