Swedish chars ��� not working under Solaris

Hi All,
I created the following little code and it is not working under Solaris 7, JDK1.4.1_01. (also tested some other but does not work)
public class HelloSweden
public static void main(String [] args)
String newName="���";
String charsetName = "iso-8859-2";
byte [] s = {(byte)229, (byte)228, (byte)246};
try
newName = new String(s, 0, s.length, charsetName);
catch ( java.io.UnsupportedEncodingException e )
System.err.println(e.getMessage());
e.printStackTrace();
System.out.println("new name is: "+newName);
for(int i=0; i<newName.getBytes().length; i++)
System.out.println(i+"."+":"+newName.getBytes());
The problem is that on Solaris 7 the output is:
new name is: ???
0.:63
1.:63
2.:63
Whereas on Linux it works fine:
new name is: ���
0.:-27
1.:-28
2.:-10
I also tried the "javac -encoding iso8859-1" option but no use.
Could anybody help?
Thnx,
GF

I also tried the "javac -encoding iso8859-1" option
but no use.
Was the output exactly the same or were the numbers correct, at least?
You may need to compile with:
javac -encoding ISO-8859-1 ClassName.java
and then run with:
java -Dfile.encoding=ISO-8859-1 ClassName
You can set the character encoding explicitely like that. The character encoding depends on locale settings; if you set LC_ALL to a Swedish locale ("sv_SE"?) javac and java should start using the correct encodings automatically.

Similar Messages

  • LSI1030 scsi adapter does not work under solaris 10 on t5240 sparc server

    hi all,
    i have following LSI1030 scsi pci-x card in t5240 server with solaris 10u8 ..
    ## prtpicl -v ## director's cut
                             LSILogic,scsi (scsi-2, ad0000061e)
                              :DeviceID      0x8
                              :UnitAddress   8
                              :vendor-id     0x1000
                              :device-id     0x30
                              :revision-id   0xc1
                              :subsystem-vendor-id   0x103c
                              :subsystem-id  0x322a
                              :class-code    0x10000
                              :cache-line-size       0x10
                              :interrupts    00  00  00  01
                              :min-grant     0x10
                              :max-latency   0x6
                              :latency-timer         0x40
                              :devsel-speed  0x1
                              :66mhz-capable
                              :fcode-rom-offset      0xa800
                              :device_type   scsi-2
                              :wide  0x10
                              :version       1.00.38
                              :reg
    00  07  40  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
    01  07  40  10  00  00  00  00  00  00  00  00  00  00  00  00  00  00  01  00
    03  07  40  14  00  00  00  00  00  00  00  00  00  00  00  00  00  02  00  00
    03  07  40  1c  00  00  00  00  00  00  00  00  00  00  00  00  00  02  00  00
    02  07  40  30  00  00  00  00  00  00  00  00  00  00  00  00  00  10  00  00
                              :model         LSI,1030
                              :compatible    pci103c,30
                              :assigned-addresses
    81  07  40  10  00  00  00  00  00  00  10  00  00  00  00  00  00  00  01  00
    82  07  40  14  00  00  00  00  05  20  00  00  00  00  00  00  00  02  00  00
    82  07  40  1c  00  00  00  00  05  22  00  00  00  00  00  00  00  02  00  00
    82  07  40  30  00  00  00  00  05  30  00  00  00  00  00  00  00  10  00  00
                              :mpt-version   1.02
                              :firmware-version      1.03.39.00
                              :devfs-path    /pci@500/pci@0/pci@c/pci@0/LSILogic,scsi
                              :binding-name  LSILogic,scsi
                              :instance      -1
                              :_class        scsi-2
                              :name  LSILogic,scsi
    ## prtdiag -v # director's cut
    MB                lsilOGICLSILogic,scsi                     LSI,1030
                            /pci@500/pci@0/pci@c/pci@0/LSILogic,scsi
    ## prtconf -v # director's cut
                        LSILogic,scsi (driver not attached)
                            tape (driver not attached)
                            disk (driver not attached)
    {0} ok probe-scsi-all
    /pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8
    MPT Version 1.02, Firmware Version 1.03.39.00
    Initiator ID is 7
    Target 3
      Unit 0   Removable Tape     HP      Ultrium 2-SCSI  S63Di am unable to run this controller under solaris 10, is it even possible ??
    regards, daniel
    ps. i did reconfigure reboot and tried to tweak a mpt driver by hand, i also checked a patches for mpt driver ..

    # prtconf -v | grep LSI
                        LSILogic,scsi, instance #0
                                    dev_path=/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:devctl
                                    dev_path=/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:scsi
    # cfgadm -lv c2
    Ap_Id                          Receptacle   Occupant     Condition  Information
    When         Type         Busy     Phys_Id
    c2                             connected    unconfigured unknown
    unavailable  scsi-bus     n        /devices/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:scsi
    # iostat -En ## cut
    rmt/0            Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: HP       Product: Ultrium 2-SCSI   Revision: S63D Serial No:thanks, resolved .. i added this device (mpt "pci103c,30") in /etc/driver_aliases
    regards

  • Gpib-enet v1.3 does not work under Solaris 8

    Recently I have updated my Sparc-workstation from solaris 7 to Solaris 8. I have installed GPIB-ENET version 1.3. Wenn I started ibic->ibfind gpib1, an error ENEB appeared. The gpib even did not respond to ping. After reset the gpib, it can respond to ping, but the ibic did not work.

    Referring to http://www.ni.com/support/gpib/versions.htm#sun you need the driver version 1.4

  • Flash player does not work under one user account.

    Flash player does not work under one of my user accounts.
    My system: I work with a mac mini with Mac OS X 10.6.8.
    What I have done:
    I installed the flash player maybe one year ago under my "first" user account. At that time this user account had had administrator authorization. In the meantime I had to change this "first" user account in an account without administrator authorization and created an administrator user with which I installed different programms. Lately, the message came up that it would be necessary to update the flash player. I did it; under the "first" user account, but of course with the administrator's password for installing. The installation had been "successful" - so I was told. But it did not run. I tried it again and again. Each time with "deinstallation" first. No way; it did not work.
    After asking Adobe for the reason of the problem, they suggested to install the programm directly under the administrator user. I did that (of course after deinstalling under the "first" user account) with the result, that flash player runs under my administrator and my "second" user account, but not under the first user account. There I am always told to update my flash player.
    With this result, I talked to Adobe. So they told me to contact the producer of the operating software, since this would be a mistake of the operating software.
    And here I am - full of hope to get help from you.
    Thanks for reading. And thanks in advance for helping me.
    Nanny FS

    Any update to provide at all here guys?  Again, in my situation, it's very much rights-related as a standard user doesn't even report that the flash player exists when testing it on the Adobe Flash Version Detection website (despite it showing up in Control Panel and under Add/Remove Programs).  I've already tried giving the C:\Windows\System32\Macromed and files/subfolders appropriate permissions for the standard user and still nothing.  If I either give the user in question full local admin rights or logon as the domain admin, then the Adobe Flash Version Detection website says Flash is installed and Flash works fine.
    Thoughts???

  • Why keyboard and mouse right click not working in Solaris and Linux?

    Hi all,
    I have two problems:
    1) I am working on AWT/Swing application and its working fine in window enviornment,but while running on solaris and linux mouse right-click option window not poping up.
    2) Ctrl+c,Ctrl+v,Home and End keyboard key are not working in solaris and linux OS for same application.
    Pls provide me some solution for these problem.
    -Dinesh

    Hi Nik,
    Thanks for reply. I found some solution for the above problem.
    For mouse right click there was problem in my source code.I have not implemented the mousePressed() method
    In case of keyboard Home, End and arrow key working fine after exporting AWTUSE_TYPE4_PATCH=false; in solaris and linux
    But still Ctrl-c and Ctrl-v not working.
    I am using JDK1.5.0_07+Eclipse IDE 3.1
    -Dinesh

  • The video out is NOT WORKING under 10.5.2

    *APPLE please read this;*
    The video out on the MacBook Pro is NOT WORKING under 10.5.2, or precisely is working with a possibility of 10%! Monitors doesn't find signal in, or when they find it, the image is unstable with green shadows.
    _I tried 28 external monitor in a store and only ONE was working normally!_ I tried with all the cables combinations (DVI->DVI or DVI->ANALOG, with several different brand cables).
    Before the 10.5 update, I didn't have any problem with external Monitor.
    The point is that I have installed in the same computer (MAC BOOK PRO) also WINDOWS VISTA, and all the monitors that are not working with MAC OS are working perfectly under VISTA system.
    I made a long research online and I found out that thousands of users have the same problem, but no one receive an answer from APPLE from several months!
    This is not the only problem that I have under MAC OS 10.5, but them, are other topics.
    _Please at least resolve this MAJOR problem that I and thousands of other users have with video out._
    Thank you.
    Leonardo Corbucci Zanobi
    F I R S T A K E - STUDIOS
    www.firstake.net

    Video out under 10.5.2 works fine for me and for a colleague of mine with a more recent MacBook Pro. I'd wager it's a problem with your Leopard install, not a universal one.
    Also, FYI, Apple doesn't read these forums; they're just for user-to-user help. If you want to leave MacBook Pro feedback for Apple, do so here:
    http://www.apple.com/feedback/macbookpro.html
    But again, I do not believe yours is a universal issue. We'll be happy to help troubleshoot though. What do you mean the image is "unstable"? Could you take a digital photograph of the external monitor's screen and upload it somewhere?

  • Rocketfish Bluetooth Keyboard RF-BTKB2 not working under Windows 7 64 bit

     Rocketfish Bluetooth Keyboard RF-BTKB2 not working under Windows 7 64 bit
    Anyone had successs in this or another Bluetooth Keyboard after a bit of a struggle?  What did you do to get it working?  When I Add Device in Bluetooth it sees the keyboard but enlessly scans for it when I try to select and connect.  The Rocketfish Bluetooth mouse worked just fine.

    My friend, i have both, the bluetooth mouse and keyboard here that your talking about. and the keyboard was a struggle to pair with the windows 7 64 bit.... i think i spent 2 days working with it. and i didnt try anything special, i just kept trying to pair
    it, and unplugging the dongle and working with it... and after a while. it worked... Lately though, i have been looking into getting a wired mouse and keyboard becuase of the delays and sleep time i have with my current keyboard(rocketfish). supposidly there
    is a way around the delays but it disables all the options on your keyboard. IE the media buttons, and web browsing features. and my mouse keeps dieing off too....
    Also, after researching these products more, i found that alot of people experienced similar problems with them, Being delays and mouse failure. Even with fresh batteries and all. The products werent meant to be used long term(2-3 years) for extensive use...
    I dont know about you but i thinki paid 100 bucks for the pair so thats only 25 bucks a year... Which is kinda silly considering i coulda got a better one that wont cough up on me.
    If anyone reading this finds a good wireless keyboard that doesnt delay, and a mouth that doesnt delay...(my biggest concern). Please mention it. i am very interested in.

  • I have a generation 1 ipod touch my wifi is not working, under setting the wifi says no wifi and is gray.  i have tried resetting it and its not workin. what should i do, please help. thanks

    i have a generation 1 ipod touch my wifi is not working, under setting the wifi says no wifi and is gray.  i have tried resetting it and its not workin. what should i do, please help. thanks

    If a restore did not fix it, you have a hardware issue--possible bad wi-fi radio.
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Tomcat 4.1.x not working under JDK 1.2.2

    We are trying to test our web application on all versions of JDK starting from 1.2.2. We use Tomcat as the servlet engine and after upgrading from Tomcat 3.2.x to 4.1.24 (we've tried 4.1.18 as well) we have noticed that the new Tomcat does not start under JDK 1.2.2, see command line output below. We've tried on several machines and it fails with the same Exception. Has anyone tried running Tomcat 4.x on JDK 1.2.x? We find it hard to believe that a product like Tomcat would fail to support JDK 1.2, so any information would be appreciated.
    C:\Java\jakarta-tomcat-4.1.24\bin>catalina.bat run
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME: c:\java\jdk1.2
    Bootstrap: Class loader creation threw exception
    java.lang.IllegalMonitorStateException: current thread not owner
    at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java, Compiled Code)
    at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java, Compiled Code)
    at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java, Compiled Code)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled Code)

    I had the same problem.
    No Tomcat 4.1.x is not working under JDK1.2.2.
    It has something to do with a difference in byte code of the classes between jdk1.2.2 and jdk 1.4.
    I am running now on J2SDK1.4.1_03 and have no problems any more

  • Dreamweaver CS4 not working under MacOS 10.9

    on starting DW CS4 it asks for Java Runtime engine 6, but Mavericks has Java v.7 installed. Since Java 6 was part of the OS of previous systems, I cannot install it seperately, besides it would probably cause conflicts with OS 10.9. Do I have to trash my DW, or is there a workaround.
    Thanx

    If I follow click the instal button on
    I get the progress bar for about 1 sec and then the message about a supposed
    network problem
    which is unreal, since my network works perfectly for any other task and I
    had even tried disabling the firewall and little snitch. Things are still
    not working
    Von:  Jon Fritz II <[email protected]>
    Antworten an:  <[email protected]>
    Datum:  Montag, 25. November 2013 18:34
    An:  RoWo <[email protected]>
    Betreff:  Dreamweaver CS4 not working under
    MacOS 10.9
    Re: Dreamweaver CS4 not working under MacOS 10.9
    created by Jon Fritz II <http://forums.adobe.com/people/JonFritzII>  in
    Dreamweaver support forum - View the full discussion
    <http://forums.adobe.com/message/5872889#5872889>
    This has been discussed a lot here, you need to install Java 6.
    http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.ht ml
    <http://helpx.adobe.com/dreamweaver/kb/dreamweaver-java-se-6-runtime.html>
    Please note that the Adobe Forums do not accept email attachments. If you
    want to embed a screen image in your message please visit the thread in the
    forum to embed the image at http://forums.adobe.com/message/5872889#5872889
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/5872889#5872889 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/5872889#5872889. In the Actions box on the
    right, click the Stop Email Notifications link.  Start a new discussion in
    Dreamweaver support forum at Adobe Community
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/thread/416458?tstart=0.

  • Message.saver is not working under 10.6 - anybody know of an alternative?

    Message.saver 1.5.2 (http://www.apple.com/downloads/macosx/icons_screensavers/message.html ) is not working under 10.6. It is a screensaver that allows you to put a text on the screen as the saver kicks in. IMHO a excellent piece of software that worked fine under 10.5 but not under 10.6.
    Does anybody know if there is something like it? and that works under 10.6?
    Thanks.

    Hi
    i have the same messages on 10.6.4 and with the sonic xx170:
    28.06.10 11:39:04 racoon[489] IKE Packet: transmit success. (Phase2 Retransmit).
    28.06.10 11:39:07 racoon[489] IKE Packet: transmit success. (Phase2 Retransmit).
    28.06.10 11:39:08 racoon[489] IKE Packet: receive success. (Information message).
    28.06.10 11:39:10 pppd[488] IPSec connection failed
    28.06.10 11:39:10 racoon[489] IKE Packet: transmit success. (Information message).
    28.06.10 11:39:10 racoon[489] IKEv1 Information-Notice: transmit success. (Delete ISAKMP-SA).
    any ideas?
    waiting on 10.6.5, 10.6.6 ....?
    regards, Arthur

  • Wish I would have known Quicken 2007 would not work under Lion OS.  I had no reason to believe it wouldn't.  Any ideas for me?

    Wish I would have known Quicken 2007 would not work under Lion OS.  I had no reason to believe it wouldn't.  Any ideas for me?

    I switched to Essentials while using Snow Leopard in anticipation. Data conversion was pretty good. Nothing critical was lost, but I did have to reassign some budget catergories for past transactions. It was a good opportunity for some cleaning up that I should have done anyway. They have a 60-day return policy on the Quicken web site which was key to my purchase decision.
    I am not affiliated with Quicken in any way other than as a customer. I'd have preferred it if they had updated 2007 but they didn't!

  • Oracle Reports Team Please Help..! Arabic Reports PDF not working in Solaris

    Hi,
    I am not able to Generate Arabic PDF reports (HTMLCSS is working fine with me.....)
    O/s is Solaris........O/s supports Arabic....
    NLS_LANG is set to "ARABIC_EGYPT.AR8ISO8859P6"
    In place of arabic content its showing Junk characters..... In win2k Its working fine........ I have checked my uifont.ali I am giving my PDF section details..
    [ PDF:Embed ]
    helvetica = "helvetica.afm helvetica.pfa"
    [ PDF:Subset ]
    Arial = "Arial.ttf"
    helvetica = "Arial.ttf"
    "Andale Duospace WT J" = "Aduoj.ttf"
    "Albany WT J"="AlbanWTJ.ttf"
    "MS UI Gothic" = "msgothic.ttc"
    And i have Included the Fonts folder entry in REPORTS_PATH variable entries...Is there any thing needs to be done.....??????
    Why its not working in Solaris........PLEASE HELP ME OUT...........!!!!!
    Thanks in Advance........
    sharat ([email protected])

    Hi Sharat
    I see that you have two entries for helvetica font in your uifont.ali. Be aware that order of precedence is alias->embed->subset. If the helvetica part is appearing junk, try and comment out the entry in embed section and let the subsetting happen.
    On Solaris, ensure that the case of font file names match.
    Regards
    Sripathy

  • D-Link 562M modem does not works in Solaris 10 (?)

    I use D-Link 562M external USB 56K modem. Modem works in Windows but does not works in Solaris 10 (?). Help me!

    pat.gibbons wrote:
    Not supported yet but will be in a future Solaris Express release.Many USB modems are not really modems but the entire signal processing is done by the host computer. Such "winmodems" require signal processing software which is quite complex. I do not think that such modems are supported in the following versions of Solaris.
    If the 562M is NOT such a modem (but a "real" one) it should be quite easy to adapt a driver to work with this modem.
    Martin

  • Nautilus-open-terminal does NOT work under x86_64

    I found the latest nautilus-open-terminal v0.9-1
    http://aur.archlinux.org/packages.php?ID=5224
    does NOT work under x86_64!
    There was no open-terminal menu item in the context menu

    shaohao wrote:I found the latest nautilus-open-terminal v0.9-1
    http://aur.archlinux.org/packages.php?ID=5224
    does NOT work under x86_64!
    There was no open-terminal menu item in the context menu
    I've recompiled almost 40 days ago and i've had no problem at all.
    Have you tried logging out before trying?

Maybe you are looking for

  • Dynamically change embedded interface view in window

    I have a Maincomponent M which embedds in its Mainwindow an interface view V_L from a component definition interface cid L. CID L handles the layout with several views and has two at runtime chosen variants (= cid_L-implementating components ) L1 and

  • Soap xml payload

    hi iam working on soap to rfc and i am using sap soap test client. can any one send me the xml payload to test the sap test client using the data . tahnks and regards viju

  • Env Variable setting for Oracle 11g windows 2003 R2

    Hi , While installing the Oracle 11g on windows 2003 R2 getting error while running the prerequsite steps for installtion.failing the env variables path. Please guide us to set up the Environmental variable for the oracle 11g installation. Thanks..

  • Exchange Connector 9.1.1.1.0 -Support for multivalued attribute

    Hi, I am currently on OIM 9.1 BP07 + weblogic 10.3 + RHEL5. Currently I have a mutlvalued attribute that needs to be reconciled, when I use OOTB reconciliation task i get column not found exception on child table which is configured to hold multivalu

  • I have just updated the security in my test directory...

    I have just updated the security in my test directory server, what's the best way to migrate the new ACI's to the production servers? Is there a utility do to this? Thanks in advance! Try our New Web Based Forum at http://softwareforum.sun.com Includ