Arabic conversion pain

Hi All,
I'm having great trouble with some arabic processing I'm trying to do. I am pulling data from an iSeries via JDBC (IBM Toolbox for Java driver). The iSeries CCSID is 420. I'm getting this as a byte array from the resultset and generating a java string:
byte[] binData = rs.getBytes(4);
String strJavaString = new String(binData, "Cp420");so far, so good. I now want to convert back to another charset and write this to a local file.
i.e.
byte[] binOutput = strJavaString .getBytes("UTF8");
buffoutstream.write(binOutput);writing UTF8 is fine, the output text is correct. Using 1256 on Windows is also fine.
BUT, if I try to convert the java string to ISO8859-6 (ISO Arabic) then it doesn't work:
byte[] binUTF8 = strUnicode.getBytes("ISO8859_6");Most of the characters are not translated to valid 8859-6 arabic characters. I know this by looking at the byte values produced and the fact that it doesn't display correctly on my arabised system.
Does anyone know what I might be doing wrong, or if there are definite issues with ISO8859-6?
I'm developing in WSAD (IBM JRE 1.3) on windows XP.
Hope someone can help.
- Adam

Can you give some examples of Arabic characters from 420 that won't convert to 8859-6 or 1256 that you think should do so?
8859-6 and Windows 1256 are overall not very much alike. They are alike in terms of the Arabic characters themselves, but 1256 has a lot of other characters that won't convert into 8859-6. Are you sure you are looking at conversions of Arabic characters? For example, 1256 and 8856-6 are the same from 0xC1 - 0xD6, but not at all the same from 0xAE to 0xBE.
Another issue that may be tripping you up: code page 420 has a lot of initial, medial, and final form characters in it. Windows 1256 and ISO 8859-6 do not have such characters. 420 is from the era where you didn't have a nice Arabic layout subsystem drawing text on your workstation screen. To convert between 420 and 1256/8859-6 you actually need to do something a bit smarter than a one-to-one conversion. I haven't looked at the conversions in Java lately, but perhaps this conversion has become a bit more rigorous in 1.5.

Similar Messages

  • Podcast conversion painfully slow; can't add chapters while recording?

    I'm finding GB3's conversion to m4a very, very slow.
    For the last six months, I was using GB2 to mix my audio, iTunes to convert to m4a, and PodcastAV to add chapters and pictures. The mixdown process takes the same amount of time (10 minutes for an hour long podcast), but GB3 takes over half an hour to convert the audio to 64 kbps audio! In comparison, the equivalent iTunes takes three or four minutes to do the same. Is GarageBand not using the Velocity Engine?
    Additionally, if I make any changes to the chapter info in GB3, I have to go through this painful 40+ minute process once again. Tools like PodcastAV and ChapterToolMe can take existing m4a files and simply pass it through unchanged, only modifying the chapter info. Is there a way around this?
    Also, is there a way to add podcast chapters while recording? When recording, I can't select the podcast track to the "add chapter" button...
    Gotta say I'm disappointed so far.
    17" powerbook (1.67)   Mac OS X (10.4.4)  

    OK, i have played a bit more with Iphoto and GarageBand. It is really the size of the pictures. The original size of my pictures is 2048x1536px. If i make the pictures much smaller, i can add them from the mediabrowser into the podcast.
    What i now don't understand, why does it work if i drag them from the finder into garageband without editing the size? And what dimenson should the fotos have for optimal performance in the cast?

  • Word 2007 Arabic conversion to PDF - problems - help?

    I have a Word 2007 document with Arial font that contains English and Arabic (Saudi Arabia) languages. When I "Create PDF" from the Acrobat toolbar in Word, the PDF that results is mostly white space because only the English text is converted. All of the Arabic text is missing. I haven't experienced this in the past, but I'm not sure if that's due to using an older version of Word or an older version of Acrobat, or perhaps both. I'm currently using Acrobat 9 Pro. Any help or suggestions would be much appreciated. Thank you.

    You can save any Office file as a .pdf. No additional software needed.
    Ceate the document then start the print process (command + P). The bottom of the print dialog box gives you a button that gives a drop-down with the optionto save the document as PDF.

  • ADF RegExp Validator ??? how to change Error Messege ?

    what is the key for the Error Massage in the ADF Regular Expression validator.
    Message was edited by:
    JOKe

    Timo, Thanks for Guidance and sugession.
    actualy for ADF component Internationalization working properly, but the Validators are defined in .java file and from that we have to bind our messages. we have created two properties file , one for English content and another for Arabic . But Still in Arabic conversion. the English message is coming. Is am i going in wrong way?.....i am just giving you highlight of my module......
    1) My Validation is for Date i.e. "from date should not be greater than to date", which i have define it in .java file. At first we have Hardcodef the message,but as per the requirement we have to translate this message into Arabic one.
    2)the two property files we have defined are abc_en.properties (for english) and abc_ar (for arabic).
    3)now in java file we have declare one String variable "res" and insted of sop we have defined one method
    MessageUtil.messageInfoWithTitle(res.getString("NEW.DATE.TITLE"),
    res.getString("NEW.DATE.WARNING.MESSAGE"));
    so that whenever we call this method it will take these key values and depending on the locale this message should get display.
    So what is wrong thing i did? Please help me out.

  • AVCHD Import / Export

    Hi There,
    I'm considering upgrading to a new Mac and I-Life08. I see that the new iMovie can import AVCHD from HDD camcorders. Does it get converted to HDV for use in iMovie, or does iMovie keep it AVCHD?? Is the conversion painful (ie slow and/or degrade quality)?? Once I'm done editing can I output AVCHD to puch it back to my camera for viewing and to a server for archiving?? Some other software products I've looked at can import AVCHD but require you to purchase the "Pro" version for several hundred dollars to keep you project AVCHD through output. Any help would be appreciated.
    Doug J

    What I don't understand is this. I have seen some highly compressed 540P and 720p video on the web that is remarkably clear. (With bit rates as low as 2500 kpbs) While it doesn't have the detail of the plants and trees I film, it is undersea video with quite a lot of detail.
    I am losing all of this detail going from AVCHD to AIC. No compression yet at all. The file size is still huge, and the bit rate is "up there." 1.2 GB for 45 sec. and 230,000 kpbs and it is still blurry.
    For anyone interested, here is a sample 45 sec clip. While it is compressed for your viewing, it is still very clear and illustrates accurately the panning blur I see in the uncompressed AIC. This is the same blur I see when viewing the 1.2 GB/230,000kpbs file.
    http://www.palmpedia.net/wiki/index.php/SlowPan_Test1/500
    The reason I am asking these questions is because I am being told elsewhere that this is the nature of the AVCHD "beast." That it is impossible to get the clear panning I desire with any AVCHD/CMOS camera. They say because of the way indivual frames are treated (something to do with a long GOP), it is impossible, and I need a 3 CCD camera with a different codec.
    If this is true, then fine. But I don't want to spend $5-10,000 and still have blurry pans.

  • Arabic Character set conversion-help needed

    We have our main database running in 10g (Solaris o/s) & planning to move these to RAC 11g.
    One of our old oracle DB(8.0.5)/solaris, which is not used till recently need to upgrade to 10g Rel2.
    I know Supported direct upgrade 8.0.6/8.1.7/9i -> 10g
    Current DB: 8.0.5 (Character Set: AR8ISO8859P6)
    Target DB : 10g Rel 2 (Character Set: AR8MSWIN1256)
    I am thinking to go the following way by using exp/imp
    8.0.5(AR8ISO8859P6) -> 8.1.7(AR8ISO8859P6) -> 10G(AR8MSWIN1256)
    OR
    8.0.5(AR8ISO8859P6) -> 8.1.7(AR8MSWIN1256) -> 10G(AR8MSWIN1256)
    please advice
    thanks

    (1) At source db 8.0.5 (solaris)
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-YY
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AR8ISO8859P6
    NLS_SORT BINARY
    NLS_NCHAR_CHARACTERSE T AR8ISO8859P6
    $set NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
    $exp sys/dba file=full251109.dmp full=y
    (2):>> At target db 10g R2 (solaris)
    PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RRRR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AR8ISO8859P6
    NLS_SORT BINARY
    NLS_NCHAR_CHARACTERSET UTF8
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    $export NLS_LANG=AMERICAN_AMERICA.AR8ISO8859P6
    $imp testdba/testdba file=full251105.dmp fromuser=PROFINAL touser=PROFINAL
    *$csscan testdba/testdba FULL=Y FROMCHAR=AR8ISO8859P6 TOCHAR=AR8ISO8859P6 LOG=P6check CAPTURE=Y ARRAY=100000 PROCESS=2*
    There is EXCEPTIONAL DATA in .err file+
    clients accessing 8.0.5 dataabase uses characterset AR8IS08859P6, which is SAME as 8.0.5 database
    -CSSCAN result->>[Database Scan Parameters]
    Parameter Value
    CSSCAN Version v2.1
    Instance Name MIG1
    Database Version 10.2.0.1.0
    Scan type Full database
    Scan CHAR data? YES
    Database character set AR8ISO8859P6
    FROMCHAR AR8ISO8859P6
    TOCHAR AR8ISO8859P6
    Scan NCHAR data? NO
    Array fetch buffer size 100000
    Number of processes 2
    Capture convertible data? YES
    [Scan Summary]
    Some character type data in the data dictionary are not convertible to the new
    haracter set Some character type application data are not convertible to the new characters
    [Data Dictionary Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 2,235,403 0 0 *1,492*
    CHAR 1,097 0 0 0
    LONG 155,188 0 0 6
    CLOB 24,643 0 0 0
    VARRAY 21,352 0 0 0
    Total 2,437,683 0 0 1,498
    Total in percentage 99.939% 0.000% 0.000% 0.061%
    The data dictionary can not be safely migrated using the CSALTER script
    [Application Data Conversion Summary]
    Datatype Changeless Convertible Truncation Lossy
    VARCHAR2 16,986,594 0 0 *1,240,383*
    CHAR 164,114 0 0 0
    LONG 7 0 0 0
    CLOB 1 0 0 0
    VARRAY 1,436 0 0 0
    Total in percentage 93.256% 0.000% 0.000%
    6.744%
    [Distribution of Convertible, Truncated and Lossy Data by Table]
    USER.TABLE Convertible Truncation Lossy
    PROFINAL.BASE_MASTER_DATAS 0 0 *362,003*
    PROFINAL.CODE_ALLOW 0 0 *53*
    PROFINAL.CODE_ALLOWANCE_TYPES 0 0 *1*
    PROFINAL.CODE_BONUS_TYPES 0 0 *2*
    PROFINAL.CODE_BRANCHES 0 0 *2*
    PROFINAL.CODE_CERTIFICATES 0 0 *94*
    Kindly help,,,
    Edited by: userR12 on Nov 25, 2009 1:43 AM
    Edited by: userR12 on Nov 25, 2009 1:52 AM

  • ASCII to Arabic character conversion

    Hi,
    Could any suggest me how I can convert the character set from ASCII to Arabic and vise versa.
    Thanks in advance.
    With regards
    Ramesh.G

    There are no Arabic characters in ASCII, therefore if your file contains Arabic characters it isn't in ASCII.
    If you wish to read a file that contains Arabic characters you need to find out what character encoding the file actually is in. If you can't get the information from whoever wrote the file then do some googling for arabic national character encodings and try a few. Then you use an InputStreamReader with the appropriate, named, encoding to read the file. This will reasult in the text being translated into 16 bit UNICODE characters with the proper arabic UNICODEs.
    They should display properly if you have a font that covers them, though you may have to specify right-to-left display on the component that writes them.
    You could write them as UTF-8 if you want a more international encoding, though not all programs you might wish to use the data in will know UTF-8.

  • Dynamic conversion of English to Arabic in Smartform PDF

    please give me a  technical solution for printing texts in Arabic through SAP.
                 SAP (4.7) is not supporting Printing Arabic texts in Smartforms / Report printing.
                 please check the feasibility of exporting Arabic text fields from SAP to SmartformPDF.
                 The Arabic text includes dynamic texts like employee name and number.
    I had Tried but all other language it is coming it is not coming for the Arabic alone.
    It is Printing in the #### characters.
    I have also heard some patch file we have to upload will u please suggest me the good solution.

    hi,
    Check this setting in your smart form.
    Global Settings --> Form Attributes --> General Attributes Tab.
    Set radio button 'To All Languages'.
    Now your smart form will be translated automatically to the logon language.
    For example if you want to see your form in korean language, logout SAP once, then login with korean language 'KO'. (field after username and password)
    If you need any specific text in other languages..u have to create text id in SO10 using different logon languages.
    Regards
    Anver

  • Layout in Arabic, Russian and Chinese. Exporting text from a PDF

    I am laying out long documents in Arabic, Russian and Chinese. The text has been provided as a PDF when I copy and paste this into Indesign it comes up as boxes question marks and other characters having nothing to do with the text I am trying to layout.  I have set the typeface to the Myriad Arabic and the Arabic dictionary still nothing resembling Arabic or any language for that matter. Same with Chinese and Russian. Any suggestions on how to get the text in from the PDF where it is the actual language. Appreciate any help with this.  Thank you.

    Thanks for the callout, Ellis
    Soooo, KK: you are in for a world of hurt. The intials "WP" at the beginning of these fonts means that the text came out of WordPerfect. Doing multilingual layouts in WP was annoying, but possible. It was developed in the pre-Unicode world where every single method of complex-script layout was a dirty hack. If you like knowing All of the Nerdy Dirty Details, I can tell you how it worked, but suffice it to say that trying to harvest non-Latin-script text from WP and repurpose it for use in InDesign is just pure pain. The WordPerfect-specific codepages were never really supported anywhere outside of WP.
    That being said, I have a script laying around somewhere for conversion of WP-Cyrillic into Unicode. (Actually, I think it does Windows CP 1251, but that works just as well.) But that is only one out of forty-five languages? And the Chinese has been rasterized? And the PDFs were originally generated by Distiller 3? If you have any choice, it's time to walk away. If you don't have any choice, I really hope you are billing hourly. My experience in this area (painfully extensive) is that it will cost three to five times as much to extract the text as it would to have a translation professional rekey the text, and then to have a second translation professional review the rekeyed text looking for typos.
    Russian OCR is pretty damn good these days, but Chinese OCR is hit-or-miss. I have never seen good Arabic OCR - doesn't mean it's not out there, but I couldn't help you find it.  But chances that all 45 languages have reliable OCR available, and that the result of said OCRing will not need to be reviewed by someone who knows the language, are basically nil.

  • Is there a way to stop and then resume an ipod video conversion process?

    I am trying to convert videos to play on my new iPod Classic. The conversion process is painfully slow. I need to move the computer. Is there a way to stop the conversion process and then resume it later where you left off? The only way I have been able to figure it out is to put the laptop to sleep and then open it up later to resume. This is a problem too as I have an external USB drive hanging off the side. Any ideas?
    Thanks all in advance for your help.

    AFAIk you can just uninstall Thunderbird and reinstall. The profile will not be deleted. If you want to make sure, however, make a backup of your profile folder first.
    Read up on "backup", e.g. here : http://email.about.com/od/mozillathunderbirdtips/qt/et_backup_prof.htm
    (google is your friend :9 )
    P.S. _ Matter of fact you should regularly backup your data (e.g. your thunderbirdprofile) to some place different so as not to loose it all, if a thunderbird-bug/virus/windows-failure/Layer8-Problem corrupts your data.

  • How to print Arabic text along with the English in smartform ( ECC6 version

    Hi All,
    our is ECC6 version, Non unicode, ABAP stack ( not dual stack )
    is it possible to print in Arabic language in the above version ?
    if yes, then please let me know how to print Arabic text and English text in the same smartfrom.
    i tried in the following procedures :
    1) i created standard text (SO10) in arabic language.
    i called in the smartform ( include text - i )
    langage AR
    but system throws error message saying, required language is not installed.
    2) if i use READ_TEXT function module.
    text getting printed in diff format but not in arabic.
    waiting for your replies..

    ECC6 and Non-Unicode? I think you'll need multiple code pages, I doubt there's a mixed Arabic/Latin1 available. And I don't think SAP supports new MDMP systems any more. If you need to support multiple languages you really need to go Unicode. It's probably easier to do the Unicode conversion than to try to support multiple code pages and you have to make the switch eventually.

  • How to print arabic text as water mark in XML Publisher

    Hi All,
    I am working with Arabic reports,which is conversion of RDF Reports to XML Publisher Reports.
    I Developed RTF template,here problem is how  can i use Arabic text as a water mark in template.
    Please provide me suggestions.
    Thanks in advance
    Regards
    Amar

    do you have arabic text in your report ? is it correct ?
    How To Setup XML Publisher To Show Arabic Characters (Doc ID 556995.1)
    so you can try
    ARABIC Font Shows As ?? Question Marks In Postscript Reports (Doc ID 981174.1)
    you can also post SR

  • Arabic Text problem in Excel

    Hi All,
    I am downloading my data using GUI_DOWNLOAD FM into Excel ,
    Here the issue is in excel the Arabic text is displayed as # ,
    I have gone through the scn and worked on some suggestions given like to add code page
    tab delimiter etc... but could get the desired output..
    can anyone suggest me the way to get the Arabic text correct in Excel.
    Thanks,
    Pavan

    Hi Pavan,
    Could you please describe shortly about how ,where is the data being retrieved to the program?
    whether you are performing any conversions?
    what kind of encoding used ?
    it would help me to understand and give you the useful inputs to achieve the desired output
    Regards,
    Prakash

  • Mail is linking unrelated emails into conversation threads - is there a fix for this?

    Mail is putting unrelated email messages into conversation threads. This is making it hard for me to find emails relating to different projects. The emails don't have anything in common apart from being addressed to me - different senders, subject lines, no content in common. I like working with conversations, but this is a pain.
    I've seen several discussions online about this issue going back some years, so it's a real shame Apple haven't found a fix for this. I've read a couple of recent discussions here that link this issue to Yosemite - however I'm not using Yosemite (it's a work computer and they are slow to allow us to upgrade). My details are as follows:
    MacBook Pro (13-inch, Mid 2012)
    OS Mountain Lion 10.8.5
    Mail v6.6
    I know how to switch off 'Organize by conversations' in the View menu, but that isn't fixing the problem, it's taking away functionality that I like. I have tried unchecking 'Include related messages' in Preferences, but that doesn't change anything. I've tried rebuilding the Mailbox, nothing changed.
    One thing that I hope Apple developers take note of - there doesn't seem to be a way to manually disassociate individual email messages from threads. That function would be really useful.
    Anyone got any ideas?
    GM

    Try re-indexing the mailboxes. This can take awhile if you have a lot of mail.
    Reindex messages       Mountain Lion
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail Feedback

  • Are you disappointed and frustrated with the Note 3? I feel the pain!

    I feel everyone's pain with the Note 3 Issues!  I have been in the tech field for 20 years and Verizon treats me as if it is the first time they are hearing about the issues! Rather that work on a fix, I've been told that I can leave my contract with no penalties!
    I have documentation and screen shots of all my issues and here is the short list of what I've been through....
    1. 80 + hours on the phones with a support team that close tickets without resolution, transfers you around the country to different call centers to start all over again,
    2. 3 emails to Verizon Executive Office
    3. A refurbished phone replacement of my brank NEW Note 3 that I was told would definitely fix the issues..
    4. 4 Visits to Verizon stores, 2 Simm Card replacements, 2 Network Extenders, replacement charger cord and new battery
    5. Conference calls with Samsung
    6. Been offered a less expensive phone replacement for "free" ... yeah Verizon trade my Mercedes priced phone for a Neon...
    7. Calls not returned by support agents
    8. Text messages from technicians initiated by Verizon to me, from their work domain, never responded after multiple conversations with screen shots sent showing my issue
    My issues:
    1. Network signal drops constantly in my home. No mobile network errors, dropped calls, hanging texts, 1x signals. I am told by one group that I am in a 4g covered area and the other group that I am in a weak coverage area! My other Verizon phone has 4g yet support can't understand my logic that it is a phone issue!
    2. Slow charging messages to use the original charger with my screen shot plugged into the brand new SAMSUNG charger
    3. Battery usage of 10% per hour when my phone would last all day before the KitKat update and still have almost 70% remaining
    4. Overnight battery drainage in 7 hours from 91% to 27% while OFF..no wifi on and no Bluetooth on
    5. PIctures in my Gallery, that I can see and get file information for that are NOT there in the SD folder identified,  and then mysterious disappear forever
    All since the mandatory software update that you can not refuse, delete or revert back to factory version!
    So now they are going to bring the Note 4 into the mix with KitKat 4.4.4 before they update and fix the software for the owners of the Note 3...
    So what do I do?  Switch to the Note 4 or wait or wait months with TERRIBLE service while Verizon tries to fix a bad update?    By the time that happens Lollipop with be out!
    This is so frustrating... the big 3 point the fingers around rather than collaborate..
    Google makes the base Android Software update for a hardware device manufactured by Samsung that is sold by and placed on a Verizon Network. Verizon tweaks the software for "their" business. Verizon sends refurbished phones while under factory 1 year Warranty and sends devices . Samsung says everything leaves their business working properly but I can send my phone to them and be without my phone for 10 days while they "properly" flash the device for free.  They tell me  Verizon does not flash the device the same way and their way is "better". Who do I trust?  And be without my phone for 10 days because Samsung "rigorously" tests everything??? 
    And to top it all off... I wrote to Samsung's "Voice of the Customer" which is supposedly and direct complaint to the Executive Level. I wrote 3 times and 3 weeks later still no contact from Samsung. They should call it the "Voice into the Abyss!"
    I'm sooooooooooo disappointed with my experience this year....

    gooeysgran, we don't want this to be an ongoing issue for you. Have you powered your device off/on since retrieving that software update? Have you tried removing that Wi-Fi connection in the settings of your device?
    For more device support, click http://vz.to/1kDL3MI
    LasinaH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

Maybe you are looking for

  • TS1398 Apple iPhone 3g, iOS 4.2.1, Wi-Fi Problem

    I have an iPhone 3g. After the update to iOS 4.2.1, my phone no longer has Wi-Fi. I can't conncet to my home network or any network for that matter. I have tried everything from resetting network settings, resetting the router, forgetting the network

  • Finder sidebar doesn't work for networking?

    Does anybody else find that the sidebar in finder doesn't work when you network your computer to a pc network? I SEE the file servers when I click on "all" but when I double click on one of them it always says "connection failed". The only way I can

  • Error 1601 when installing Acrobat 9.5.2. What to do?

    I get error 1601 and a failed update message when trying to install the 9.5.2 update of Acrobat. There is plenty of room (I think) on my hard drive. What do I do to install this update?

  • How do you declare objects in the master database

    I am trying to register our CLR assembly as an unsafe assembly without having to make the database trustworthy.  Since making the database is_trustworthy_on = 1 is not a best practice, and would cause some of our customers (and our development proces

  • Help required on a freezing screen

    Hi, I have an application containing a login screen. This screen has a create profile button, which triggers the opening of a new screen to create a profile. When this button is clicked, the login screen is closed. When the profile is created, the pr