Non-Western characters don't work on MacOS

I have a Java application which can display cyrillic characters fine on Linux. But the cyrillic characters do not show up on Mac OS X 10.1. It is a simple String inside a JTextPane. Is there something special I need to know in order to make it work on MacOS?
- Daniel

Hey, I also have the same problem on Windows. I think the problem is because Java supports UTF-16 while I think windows support UTF-8. All I can see is '?' marks for the chars.
Anyway if anyone has a solution ????

Similar Messages

  • I just upgraded to os 5 and now my non apple apps don't work. They will not launch. Anyone seen this before?

    I just loaded os 5 on my iPad 2 and now all non apple apps don't work. Anyone have any idea way?

    Have you tried basics from the manual?
    Restart.
    Reset.
    Restore.

  • Displaying non-western characters (arabic, hebrew, japanese etc..)

    Hi there,
    I am writing a midlet where I handle some arabic words.. I have a pb, I
    cannot display arabic character . I used the following code, unfortunately
    it does not work, unfortunately I got a sequence of question marks
    displayed in the txtfield. In addtion I used different emulator Nokia s40, s60,
    sun java emulator.
    try{
    textField1.setString(new String("الكتاب".getBytes("UTF-8")));
    } catch(UnsupportedEncodingException e) {
    e.printStackTrace();
    thank you for your help
    A.E.K.

    Use unicode representalion of the characters that you wanna display on to the device.
    Also, the font engine on the device on which you are testing you app must support arabic charset inorder to render the characters.
    ~Mohan

  • Displaying non-western characters

    Hi there,
    I am developing a midlet where I handle some arabic words.. I have a pb, I
    cannot display arabic character . I used the following code, unfortunately
    it does not work, unfortunately I got a sequence of question marks
    displayed in the txtfield. In addtion I used different emulator Nokia s40, s60,
    sun java emulator.
    try{
    textField1.setString(new String("الكتاب".getBytes("UTF-8")));
    } catch(UnsupportedEncodingException e) {
    e.printStackTrace();
    thank you for your help
    A.E.K.

    Use unicode representalion of the characters that you wanna display on to the device.
    Also, the font engine on the device on which you are testing you app must support arabic charset inorder to render the characters.
    ~Mohan

  • Photoshop Automation Plug-in - Getting non western characters from layer names and layer text

    Hi To all members of the forum.
    My name is Momir Zecevic and i have developed automation plugin for  Photoshop and it work well for almost 8 years now (Windows XP, Vista, 8, Visual studio 97 and Photoshop 7 SDK). However client for which I have written plugin wants me to add possibility for  new version so that plug-in can read  international characters from text layers (Russian , French German etc) as well as layer names if they have international characters in it.
    I have tried  but seems that I am missing something obvious
    Here is example what I get from getter
    Example:
         error = sPSActionDescriptor->Make(&desc00000B28);
         if (error) goto returnError;
         error = sPSActionDescriptor->PutString(desc00000B28, keyName, "X????????X");
         if (error) goto returnError;
    Layer name is on cyrilic (i hope that it will be displayed right here) XШЂЧЋЖЊЕЏX
    Can someone point me in the right direction.
    Thank you very much.
    Regards,
    Momir Zecevic
    Ars Media
    www.arsmedia.tv

    Tom,
    Thank you very much on your response. i'll give it a try tomorow and post results here when i have them.
    Thanks again.
    Regards,
    Momir Zecevic

  • File links with utf-8 characters don't work in windows

    When I click a link like "file:///C:\символы UTF-8\path" to open in Windows File Explorer it doesn't work.
    ("My documents" folder opens instead).
    How can such links be converted to Windows encoding, when Windows File Explorer is called?
    My settings:
    network.protocol-handler.expose.file = false
    network.protocol-handler.external.file = true
    FF 27, Windows 7
    Thank you!

    I spent many days customizing Firefox and am not going to start over, again.
    I'm not a specialist in coding userChrome.css, am very busy with other stuff.
    It's better if developers restore ALL of the changes once, than thousands of users will spend many days each.
    Dixi.
    Anyway, my main question is:
    '''How to make Firefox send a parameter (filename) to a Windows application, encoded in Windows-1251 instead of UTF-8?
    Would be very grateful.

  • Special characters don't work

    I'm using Pages 3.0.2 on Leopard. I am trying to insert the 'section' symbol ('s' and inverted 's'). When I go to Edit -> Special characters, I click on it and nothing happens. My curser is at the insertion point, but nothing happens when I click on it. How do I access the Special Characters?

    Question asked and responded several times.
    Special Characters rely on the availability of the Character Palette.
    If you didn't install it, the menu will do nothing.
    Open the System's Preference Pane entitled "International"
    click the tab "Input Menu"
    then check the box entitled "Character Palette"
    and check the box entitled: "Show input menu in menu bar"
    After that, selecting "Special Characters" will open the Character Palette.
    Of course, as it is not a program feature but a system feature, it is described in the System's help searching with "special characters".
    The page is entitled: "Typing _special characters_ and symbols"
    Yvan KOENIG (from FRANCE mardi 28 octobre 2008 17:03:36)

  • [AS] Problem with non English characters in file path

    I wrote a script that exports a pdf file from ID, rasterizes it in PS, applies an action, saves it as another pdf file, and finally creates a Mail message, and attaches the file to it (the last part is written in AppleScript).
    The problem is that it doesn't work when the path to this file contains non English characters.
    This works:
    make new attachment with properties {file name:"/Volumes/Macintosh HD/BackUp Tetard/Test.pdf"}
    but this doesn't:
    make new attachment with properties {file name:"/Volumes/Macintosh HD/BackUp Têtard /Test.pdf"}
    I remember vaguely that I read somewhere that AppleScript can work with Unicode — in other words with such characters — starting from some version, don't remember which exactly, but it seems to me — Leopard.
    I am on Mac OS X 10.4.11 right now. Will updating solve this problem? Does anybody know any solution to this problem: a scripting addition, some hidden setting, etc.
    I made a little test: used a Russian character — ё and it works, but when I use — ê (Dutch) it doesn't. May it have something to do with the Region setting in International panel?
    Thanks in advance,
    Kasyan

    Kasyan, as of Leopard AppleScript treats all text as Unicode pre this you can specify 'as Unicode text'. Try a test with these.
    -- Leopard
    set x to POSIX path of (path to desktop)
    -- Pre Leopard
    set x to POSIX path of (path to desktop as Unicode text)
    -- Leopard
    set x to POSIX path of (choose file without invisibles)
    -- Pre Leopard
    set x to POSIX path of ((choose file without invisibles) as Unicode text)

  • Non-western input and question marks

    whenever i try to input some non-western characters into
    flash input box all i see are ???? instead of characters. Is it
    fixable?

    It sounds like you deleted Mail, System Preferences, and iCal from your Applications folder. If you haven't emptied the trash, open the trash and see if the applications are still there. If so, drag them back to the Applications folder on the top level of the hard drive. If you moved the applications, put them back in the Applications folder. If the trash has been emptied, you need to reinstall OS X by using the DVD that came with your computer. Insert the DVD and double-click on Install OS X. The computer will reboot. Go through the installation steps and when you see Options at the bottom, click it and choose Archive and Install and Preserve Users and Network settings. Then continue with the installation. When it is done and the Mac reboots, you can delete the folder on the hard drive called Previous System Folders. Then run System Update to install the latest updates.

  • Dwm - Display non-western chars

    I want to display some non-western chars in my dwm status bar, i.e. Greek and a few Arabic
    I tried to compile dwm with some Greek and Arab chars for the tag names but dwm only displays some dotted '[]' instead of my selected chars.
    Is there a possibility to use non-western characters as tag names in the dwm status bar?

    upsidaisium wrote:
    as dolby mentioned, this has been brought up again in the mailing list.  not sure if it was resolved, though.
    terminus might be a decent font to choose, but i think you might run into the same problems again anyway
    There is a testcase there though :
    http://www.suckless.org/pipermail/dwm/2 … 03391.html
    wget -q -O - nic.ru | iconv -f windows-1251 -t utf-8 | grep '<title>' | dmenu -fn "-*-terminus-medium-*-*-*-14-*-*-*-*-*-iso10646-1"
    That doesn't work properly indeed. But with "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*" instead, it works fine.

  • Support for non-western character sets

    I've been reading docs for WL portal and for WL server, but basically I need to know...what needs to be set/installed for a Weblogic Portal 10.3 running on Weblogic Server 10.3 to have non-western characters display in the content of any portlet we may have? For instance, Arabic, Japanese, Chinese...thanks!
    Sorry, I want to add: this is assuming the encoding of the content is correct (like an html document), the database that content may be retrieved from is set up correctly, etc.
    Just basically what to configure in WL Portal, WL Server, oh and Workshop too (if anything).
    Edited by: user10697594 on Jan 5, 2010 2:56 PM

    Hi
    You dont need anything special, however the JVM you use must support the encoding you want (unless you are going with a unicode flavor like UTF-8 which all JVM's support). The rest of the i18n stuff like ResourceBundles for messages, date currency formats are handled in your code anyway.
    regards
    deepak

  • Problem w/ combination of non-Western and accented characters in file names

    *Description of problem*
    - iTunes U .m4v files preview and play perfectly from iTunes U server, but once downloaded locally on a Mac (via Get Tracks or Subscribe), they no longer play in iTunes software, or stand-alone in QuickTime player or Pro.
    - If you drag these files out of iTunes, they appear to not copy (actually, they do copy but the files are made invisible).
    *What we know:*
    - problem only on macs (same behavior on OS X 4.x and OS X.5.4)
    - files sync and play fine on iPod Classic 80gb
    - files will not sync to iPhone 1st gen.
    - same behavior on both iTunes 7 and 8
    - same behavior on QuickTime 7.5.0 and 7.5.5
    - not happening on any Windows machines
    - appears to be caused by the file name (particularly the combination of non-Western, 2-byte characters (Japanese, Chinese) plus accented roman letters (e.g. 大/dà/big; large).
    Either of these alone (not combined) in the title work fine.
    - if file is renamed with no character or accented letter or given a name at least 26 characters in length, the file suddenly will play (the files can be renamed and fixed this way either in the iTunes software or at the file level itself, within Music/iTunes/Movies/, and also at the Upload/Manage interface of iTunes U).

    Yep.
    "A Better Finder Rename" is great for batch file renaming.
    http://www.versiontracker.com/dyn/moreinfo/macosx/11366
    Renamer4mac may be all you need.
    Best check out VersionTracker. In fact everybody should have this site bookmarked and visited daily.
    http://www.versiontracker.com/macosx/

  • Why Rpad does not work in non-English characters...????

    Ηι ,
    I have the classic table of emp in user scott....
    When i insert another row containing non-English characters the rpad function does not work......
    SQL> select ename , rpad(ename,12,'.') from emp;
    ENAME                          RPAD(ENAME,12,'.')
    SMITH                          SMITH.......
    ALLEN                          ALLEN.......
    WARD                           WARD........
    JONES                          JONES.......
    MARTIN                         MARTIN......
    BLAKE                          BLAKE.......
    CLARK                          CLARK.......
    KING                           KING........
    TURNER                         TURNER......
    JAMES                          JAMES.......
    FORD                           FORD........
    MILLER                         MILLER......
    SCOTT                          SCOTT.......
    ADAMS                          ADAMS.......
    ΠΑΝΑΓΙΩΤΟΥ ΠΑΝΑΓΙWhen i convert it to English characters then it works....
    PANAGIOTOU PANAGIOTOU..
    How can i make it to work....????
    I use 10g v.2
    Many thanks...
    Sim

    Hi ,
    SQL> select length('ΠΑΝΑΓΙΩΤΟΥ') from dual;
    LENGTH('ΠΑΝΑΓΙΩΤΟΥ')
                      10
    SQL> select vsize('ΠΑΝΑΓΙΩΤΟΥ') from dual;
    VSIZE('ΠΑΝΑΓΙΩΤΟΥ')
                     20When i issue the command
    SQL> select ename , rpad(ename,25,'.') from emp;
    ENAME                          RPAD(ENAME,25,'.')
    SMITH                          SMITH....................
    ALLEN                          ALLEN....................
    WARD                           WARD.....................
    JONES                          JONES....................
    MARTIN                         MARTIN...................
    BLAKE                          BLAKE....................
    CLARK                          CLARK....................
    KING                           KING.....................
    TURNER                         TURNER...................
    JAMES                          JAMES....................
    FORD                           FORD.....................
    MILLER                         MILLER...................
    SCOTT                          SCOTT....................
    ADAMS                          ADAMS....................
    ΠΑΝΑΓΙΩΤΟΥ                     ΠΑΝΑΓΙΩΤΟΥ.....It worked.... setting as 25 characters for padding.....
    Thanks....for the useful remark
    Sim

  • A Download servlet: non-ASCII characters not working

    This is my servlet used for file download:
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
      String filepath = request.getParameter("filepath");
      String filename = request.getParameter("filename");
      response.setContentType("application/zip");
      response.setHeader("Content-Disposition", "attachment;filename=\""+filename+"\";");
      ServletOutputStream sos = null;
      BufferedInputStream bis = null;
      try {
        sos = response.getOutputStream();
        bis = new BufferedInputStream(new FileInputStream(source));
        byte buffer[] = new byte[2048];
        int c;
        while((c = bis.read(buffer)) != -1)
          sos.write(buffer, 0, c);
      } catch(Exception e) {
      } finally {
        bis.close();
        sos.close();
    }It does not work when the filename contains non-ASCII characters (e.g., extended ASCII, CJK ...)
    What do I fix this? Thanks!

    One possiblitiy that occurs to me is you have too many encoding things going on and you are sorta "over-encoding" things, as it were....
    All I can think to do is give you this sample JSP page that I created when I was trying to figure all this web encoding stuff with forms back in the day. So perhaps you can use this as a basis for your own page.
    // _lang.jsp
    <%@ page language="java" contentType="text/html; charset=UTF-8" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title></title>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    </head>
    <body bgcolor="#ffffff" background="" text="#000000" link="#ff0000" vlink="#800000" alink="#ff00ff">
    <%
    request.setCharacterEncoding("UTF-8");
    String str = "\u7528\u6237\u540d";
    String name = request.getParameter("name");
    %>
    req enc: <%= request.getCharacterEncoding() %><br />
    rsp enc: <%= response.getCharacterEncoding() %><br />
    str: <%= str %><br />
    name: <%= name %><br />
    <br />
    <a href="_lang.jsp?name=<%= java.net.URLEncoder.encode(str, "UTF-8") %>">as link</a>
    <br />
    <br />
    <form method="GET" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="GET Submit" />
    </form>
    <form method="POST" action="_lang.jsp" encoding="UTF-8">
    Name: <input type="text" name="name" value="" >
    <input type="submit" name="submit" value="POST Submit" />
    </form>
    </body>
    </html>

  • Command   C or V don't work with a non US keyboard

    For some reason, when I switch to use a non US keyboard, like Russian or Hebrew, the common Mac shortcuts don't work... for instance Command + C or V... help... this is so unconvinient...

    Hi Gerrit Deike,
    Based on my experience, you should check your TMG and Firewall settings and verify the required ports are opened, the required access rules are configured correctly.
    Also please check the ports of Edge Server  that you defined  in the topology.
    The required port and protocol for your reference.
    http://technet.microsoft.com/en-us/library/gg425891.aspx
    Best regards,
    Eric

Maybe you are looking for