Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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 …

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now