Solved

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

Posted on 2002-03-24
3
976 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
[X]
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
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
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 …
Six Sigma Control Plans

724 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