Wrong character encoding in error messages

The Java compiler can be adjusted to source file encoding with the option javac -encoding ...
The Java runtime can be adjusted to terminal encoding with java -Dfile.encoding=...
While this appears somehow inconsistent, it works and can be used e.g. when running the tools from Cygwin (the POSIX layer on Windows) which uses UTF-8 by default, while Java, following the Windows mechanism, uses some other character encoding by default (this works more seemlessly on Unix/Linux, by the way).
Now if I compile UTF-8 source with non-ASCII characters, and there is an error message related to them, the error message printed to the console will not be UTF-8 encoded, resulting in mangled text output.
(Arguably, source and terminal encoding could be different, but then there is no option available to the compiler to adjust this;
it does not accept -Dfile.encoding=....)
Example: Error message looks like this:
FM.java:1: error: class, interface, or enum expected
b▒h
While the string is actually "bäh" in the source.
This is a bug. Any proper place to actually report a bug?
Edited by: 994195 on 15-Mar-2013 09:42

I'll ignore you just blatantly assuming it is a bug because you say so, you did not think to type "java report bug" into Google?

Similar Messages

  • Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created

    Sorry, something went wrong --- I got an error message after a new webapp was built and a new site collection was created.
    This in SharePoint 2013 Farm.
    What should I do?
    1- I did a DisableLoopBack and set the value to "1".
    For hostname do I have to do : 111.111.111.111 (sample) and serversp2013?
    P.S. I fixed this issue once, long time ago and I forgot how it ... be done.

    Hi,
    For troubleshooting your issue, please take steps as below:
    1.Go to IIS, make sure the web application is actived.
    2.Go to IIS -> Applicaiton Pools, make sure the application pool related to your web application is started.
    Reference:
    http://support.microsoft.com/en-us/kb/926642/en-us
    http://www.techrepublic.com/forums/questions/cannot-browse-created-web-application-site-in-sharepoint-services-30/
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Wrong type of file error message PSE 7

    Error message in PSE & when I try to open images I saved.  Wrong type of file, cannot be opened.  Tried to remove the read-only in properties but still cannot open .jpg images.  Can anyone help?  Photo attached.

    I do not see any attachment.
    -garry

  • Wrong CAP file version error message

    I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically.
    I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30.
    After running my JavaCard Applet by Eclipse, I got its CAP file in folder [b\bin\FVSCardPkg\javacard\[/b]
    But when I run my loader application with this CAP file, the error message will display:
    EX: msg Wrong CAP file version, class class com.ibm.jc.JCException
    Wrong CAP file version
         at com.ibm.jc.CapFile.parseHeader(Unknown Source)
         at com.ibm.jc.CapFile.readCapFile(Unknown Source)
         at com.ibm.jc.CapFile.<init>(Unknown Source)
         at LoaderPkg.loader.load(loader.java:35)
         at LoaderPkg.loader.main(loader.java:20)
    This is my loader application source code:
    import java.io.*;
    import com.ibm.jc.*;
    import com.ibm.jc.terminal.*;
    *  Sample /**
    *  Sample loader. Demonstrates how to use the offcard API to download
    *  a cap-file on a JCOP41V22 Engineering sample card and listing of applets loaded will
    * follow.
    public class loader{
         private final static String termName = "pcsc:4"; // Real card
    //     private final static String termName = "Remote"; // Simulator
         protected static final byte[] JCOP_CARD_MANAGER_AID = { (byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};
         protected static final byte defaultInstallParam[] = { -55, 0 };
         static String[] capFileName={"D:/MyCardPkg.cap"};
         public static void main(String[] args){
              try{
                   loader l = new loader();
                   l.load();
              }catch(Exception e){
                   System.err.println("EX: msg " + e.getMessage() + ", class " + e.getClass());
                   e.printStackTrace(System.err);
              System.exit(0);
              //Likewise for simulation, be patient the port takes time to close.
              //Use command line "netstate" to check the disapperance of the port before
              // activating JCShell command to read the simulated card.
         private loader(){}
         private void load() throws Exception{
              CapFile capFile = new CapFile(capFileName[0], null);
              System.out.println("Package name: " + capFile.pkg);
              byte[][] applets = capFile.aids;
              if ((applets == null) || (applets.length == 0)){
                   throw new RuntimeException("no applets in cap file");
              // Get connection to terminal, take note that jcop.exe is required to be activated
              // in simulation mode.
              System.out.println("Open terminal ...");
              //Make sure that the simulator jcop.exe is activated before unmarking this satement
              //Remember to delete the downloaded applet before running otherwise error is
              //expected if the simulator finds the existence of the applet with the
              //same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt. Be patient that the port takes time to close. Use command line
              //"netstate" to check the disapperance of the port before running.
              // pcsc:4=Card Terminal  Or  Remote=LocalHost Terminal
              JCTerminal term = JCTerminal.getInstance(termName, null);
              //For real JCOP41V22 card, please unmark this statement and delete the downloaded
              //applet before running. Error expected if the card finds the existence of the applet
              //with the same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt.
              term.open();
              // Add in this statement for real card which requires some response time
              term.waitForCard(5000);
              // Create a logging terminal spitting out the APDUs on standard out
              TraceJCTerminal _term = new TraceJCTerminal();
              _term.setLog(new PrintWriter(System.out));
              _term.init(term);
              term = _term;
              // Get JavaCard representative, passing NULL resets card and returns ATR
              System.out.println("Get card ...");
              JCard card = new JCard(term, null, 2000);
              // Get the off-card representative for the card manager and use it to
              // select the on-card CardManager
              System.out.println("Select card manager ...");
              CardManager cardManager = new CardManager(card, CardManager.daid);
              cardManager.select();
              // For downloading something, we have to be authenticated to card manager.
              // For this, the keys must be set. The keys to use should of course
              // be configurable as well.
              byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
              cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
              cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
              cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
              System.out.println("init Update ...");
              cardManager.initializeUpdate(255,0);
              System.out.println("Authenticate to card manager ...");
              cardManager.externalAuthenticate(OPApplet.APDU_CLR);
              // And load the cap-file, do not forget to call installForLoad
              System.out.println("Loading cap-file ...");
              byte[] cardManagerAid = cardManager.getAID();
              cardManager.installForLoad(capFile.pkgId,0, capFile.pkgId.length, cardManagerAid, 0, cardManagerAid.length, null, 0, null, 0, 0, null, 0);
              cardManager.load(capFile, null, CardManager.LOAD_ALL, null, cardManager.getMaxBlockLen());
              byte[] capaid = capFile.aids[0];
              System.out.println("Finished loading !");
              // Install applet, we try to install the first applet given in the
              // cap file, and try to instantiate it under the same AID as given for its
              // representation in the cap file. No installation data is passed.
              System.out.println("Installing applet ...");
              cardManager.installForInstallAndMakeSelectable(capFile.pkgId, 0, capFile.pkgId.length, capaid,0, capaid.length, capaid, 0, capaid.length, 0, defaultInstallParam, 0, defaultInstallParam.length, null, 0);
              System.out.println("Install succeeded!");
              // synchronize state with on-card card manager
              System.out.println("Update!");
              cardManager.update();
              // Print information regarding card manager, applets and packages on-card
              JCInfo info = JCInfo.INFO;
              System.out.println("\nCardManager AID : " + JCInfo.dataToString(cardManager.getAID()));
              System.out.println("CardManager state : " + info.toString("card.status", (byte) cardManager.getState()) + "\n");
              //Echountered error 6A 86 with this statement:Object[] app = cardManager.getApplets(CardManager.GET_APPLETS,
              //CardManager.CVM_FORMAT_HEX, true);
              //Solved the bug by playing the integers in arg0 and arg1.
              Object[] app = cardManager.getApplets(1, true);
              if (app == null) {
                   System.out.println("No applets installed on-card");
              } else {
                   System.out.println("Applets:");
                   for (int i = 0; i < app.length; i++) {
                        System.out.println(info.toString("applet.status", (byte) ((OPApplet) app).getState()) + " " + JCInfo.dataToString(((OPApplet) app[i]).getAID()));
              // List packages on card
              // Encountered error with this statement:Object[] lf = cardManager.getLoadFiles(CardManager.CVM_FORMAT_HEX, true);
              // Solved the bug by setting arg0 = 0,
              Object[] lf = cardManager.getLoadFiles(true);
              if (lf == null) {
                   System.out.println("No packages installed on-card");
              } else {
                   System.out.println("Packages:");
                   for (int i = 0; i < lf.length; i++) {
                        System.out.println(info.toString("loadfile.status", (byte)((LoadFile) lf[i]).getState()) + " " + JCInfo.dataToString(((LoadFile) lf[i]).getAID()));
              term.close();
         static String numbers = "0123456789abcdef";
         private byte[] c2b(String s) {
              if (s == null) return null;
              if (s.length() % 2 != 0) throw new RuntimeException("invalid length");
              byte[] result = new byte[s.length() / 2];
              for (int i = 0; i < s.length(); i += 2) {
                   int i1 = numbers.indexOf(s.charAt(i));
                   if (i1 == -1) throw new RuntimeException("invalid number");
                   int i2 = numbers.indexOf(s.charAt(i + 1));
                   if (i2 == -1) throw new RuntimeException("invalid number");
                   result[i / 2] = (byte) ((i1 << 4) | i2);
              return result;
    How to solve this problem?
    Thank you in advance.

    I'm not understanding if your cap file is in "b\bin\FVSCardPkg\javacard\", then why are you loading "D:/MyCardPkg.cap"?
    The issue isn't with your off card application, but the cap file version. Look at the cap file components in JCVM specification. I believe it's the Header component. The major, minor should match your card but not greater. In other words, your can't load a 2.2 on a 2.1 card, but a 2.1 can load on a 2.2

  • Wrong character encoding from flash to mysql

    Hi, im experiencing problems with character encoding not
    functioning correctly when sending from flash to mysql. What i am
    doing is doing a contact form in flash which then sends the value
    to a php file which takes the values and inserts them into a table.
    As i'm using icelandic charecters i need the char encoding to be
    either latin1 or utf8 in mysql, or at least i think so. But it
    seems that flash or the php document isn't sending in the same
    format as i have selected in mysql because all special icelandic
    characters come scrambled in the mysql table. Firefox tells me
    tough that the html document containing the flash movie is using
    utf-8.

    I don't know anything about Icelandic characters, but Flash
    generally really likes UTF-8. So it should be sending that if that
    is what it is starting with.
    You aren't using any kind of useCodePage? That will mess it
    up.
    Are you sure that the input method is Icelandic?
    In the testing environment can you list variables (from the
    debug menu) and see if they look proper? If they do then Flash is
    readying them correctly and the problem must be coming in further
    down stream.

  • Improper character encoding in SMS message to T-Mobile user

    I've recently found that when I sent a text message to users on T-Mobile, the @ and $ are replaced by a ¿ (upside-down question mark). This occurs with all iphone messages as well as Treo users.
    Can anyone tell me if this is a phone issue or a T-Mobile issue. I'm assume its a T-Mobile issue since the problem is only with them. Any idea how to get them to fix it. I'm stumped.
    Fish

    Didn't understand from what starting point you want me to "select the mail account name", but closed and re-opened T'bird.
    Then I started to run your tests.
    To my HUGE AMAZEMENT!!! - everything seems to be working today!!
    This leaves me with a couple of old files that seem to have gotten trashed a long time ago and won't simply "revover" - but I did keep back-up copies of them elsewhere, and can now go about rebuilding them if necessary.
    Thank you for your help - whatever it is that I did, seems to have worked. After how many years?! If I have trouble in the future, I'll be back - but for right now, what a RELIEF!
    Best, Martha

  • Wrong character encoding in MS Excel

    Hi!
    I get and update data in the database (8i) using oo4o in MS Excel VBA. Data is in Latvian (NLS_LANG is AMERICAN_AMERICA.WE8ISO8859P1)
    The code is:
    Set OSes = CreateObject("OracleInProcServer.XOraSession")
    Set ODb = OSes.OpenDatabase("test", "scott/tiger", 0&)
    Set ODy = ODb.createdynaset("select ename from emp ", 0)
    The problem is, when I get data (ename), or put data into OraPrameter object, all Latvian letters are converted to some simbols. The example of the result is: 'KredØta', where at the place of Ø, should be letter ī.
    I've used this code for some years with Office 2000 and Oracle Client 8i, and everything was ok, but now I have Office 2003 and Client 10g, and it does not work :(

    Try to format the column in your query. Use to_char. ie. SELECT to_char(ename) ename FROM emp

  • Barcode 128B and wrong character encoding?

    Hello.
    I'm using Barcode Type Code 128B in Adobe Form. The Barcode is linked to data field MATNR.
    If MATNR is numeric barcode information is set correctly. But if MATNR is e.g. 012236-602-26
    then our barcode reader recognizes the "-" characters as char "ß".
    In the properties of the barcode i can't adjust codepage or font type.
    Anyone has experience with this issue ?
    Best regards,
    Sebastian

    I don't know anything about Icelandic characters, but Flash
    generally really likes UTF-8. So it should be sending that if that
    is what it is starting with.
    You aren't using any kind of useCodePage? That will mess it
    up.
    Are you sure that the input method is Icelandic?
    In the testing environment can you list variables (from the
    debug menu) and see if they look proper? If they do then Flash is
    readying them correctly and the problem must be coming in further
    down stream.

  • I am getting this error message when trying to install free version of photoshop..."This application

    I am getting this error message when trying to install free version of photoshop..."This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance. What am I doing wrong?

    From the error message it appears that you are facing difficulties with the Adobe Download Assistant.  The error message is related to Adobe AIR which the Adobe Download Assistant utilizes.  Please remove your current installation of Adobe Download Assistant and reinstall.  You can find more details under the known issues section of Troubleshoot Adobe Download Assistant - http://helpx.adobe.com/creative-suite/kb/troubleshoot-download-assistant.html#main_Known_i ssues.

  • Error messages please help !!!!

    Hi.
    It is driving me mad. It is not possible neither to install  NW_JAVA_700SP14_SR3 nor
    NW_JAVA_700SP09. Always the same error ?
    Please help what is wrong, I get these error messages:
    ERROR 2008-07-11 13:53:02.750
    CJS-30051  Cannot insert a key value pair in the secure store files. SOLUTION: See output of log file SecureStoreInsert.log: SAP Secure Store in the File System - Copyright (c) 2003 SAP AG
    ERROR 2008-07-11 13:53:02.796
    FCO-00011  The step insertAdminDataInSecStore with step key |NW_Workplace|ind|ind|ind|ind|0|0|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|ind|ind|ind|ind|4|0|insertAdminDataInSecStore was executed with status ERROR .

    ever been faced with the same problem ?
    Why deleting ? It that only one way to fix this problem ?
    What are the others doing in such cases. Or am I the only one person
    where has this special problem on the world. Becides I dont believe
    in solving the problem through removing mentioned directory and
    reinstalling. Nevertheless I will try it. I let you know about the result.
    bye
    sas

  • Error Message:The folder path 'Program Files' contains an invalid character

    I have an 80G iPod. I never had a problem with the itunes program until I switched to Vista. When I try to open iTunes I get the following error message:
    *The folder path 'Program Files' contains an invalid character*
    I have itunes installed on both my HP and on an external hard drive that I use as my backup in case something goes wrong. Neither one opens and I get the same error message on both. I have tried to uninstall iTunes and then reinstall and get the same message so I can't uninstall.
    I'm really frustrated, I need to get to my music for a huge presentation in a few days. Can anyone help?
    Thanks in advance,
    Jejo

    Have you tried working through the steps in the General section of this article?
    http://support.apple.com/kb/HT1926

  • Wrong error message no. F6556 - Fund Centre does not exist but it do exists

    Hello Gurus,
    I am trying to transfer an Old PO to Funds Centre by changing the delivery quantity in PO but the delivery date in the PO is of June 2014. I have defined the derivation strategy and system is deriving fund centre correctly but it says that Fund Centre does not exists on delivery date which is 30.06.2014. I have created fund centre from 01/01/1900 till 31/12/9999.
    I tried to use FMCN it also gives the error message saying that fund centre does not exist even on current date.
    For testing I posted some FI document to that fund centre and it posted.
    I am not sure why it is giving error only for PO (PO has a account assignment to project/WBS).
    Thanks in advance!
    Regards
    Rohit Goel

    Hello Eli,
    The problem was that WBS was using the wrong cost centre with two leading zeros (User created wrong cost centre in test system with 8 character which means 2 leading zeros as prefix) but as per the cost centre structure it should have only one leading zero and rest nine characters must be numeric. I have created a fund centre with one leading zero and that's why system was giving error when using derivation strategy as it is picking cost centre from WBS master data but fund centre was created with one leading zero hence the error was coming. when I was defualting the fund centre specifically for the WBS it was picking because I was giving the correct fund centre.
    You also recommended something about leading zeros but it was not fully applicable in our case as we have defined the derivation startegy of populating the cost centre in fund centre field and our cost centre is of 9 chararcter (in table it shows with a leading zero to make it full 10 character) but when it gets populated in fund centre field it gets populated with leading zero means it takes a leading zeros into consideration when it gets derived from cost centre. For example if my cost centre is '123456789' the fund centre gets populated as '0123456789'
    But I got the clue to my problem from your hint of leading zeros.
    Thanks Once again!
    Regards
    Rohit Goel

  • XML Source error message hexadecimal invalid character

    Hi all
    I am developing a SSIS package to add data from thousands of XML files to an existing SQL Server table. 
    And I get the error message:
    The XML Source was unable to process the XML data. “”hexadecimal value 0x01 , is an invalid character.
    I know that these XML files are not well-formed (and hence not really an XML file).
    So, How to use the SSIS package to solve this problem without using the other editor?

    Thanks Visakh16
    I tried your method, but the xml task showed me an error
    [XML Task] Error: An error occurred with the following error message: 
    “”hexadecimal value 0x01 , is an invalid character.
    My xml file with an invalid
    character before ‘うce☆溪’
    <articles>
    <article>
    <message>ID:うce☆溪&lt;br /&gt;
    &lt;br /&gt</message>
    <message_id>1</message_id>
    </article>
    </articles>
    My xslt file
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
    <xsl:template match="/">
    <xsl:text>message,message_id</xsl:text>
    <xsl:text>&#13;&#10;</xsl:text>
    <xsl:for-each select="articles/article">
    <xsl:text>"</xsl:text>
    <xsl:value-of select="message"/>
    <xsl:text>","</xsl:text>
    <xsl:value-of select="message_id"/>
    <xsl:text>"</xsl:text>
    <xsl:text>&#13;&#10;</xsl:text>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>

  • Getting 1603 adobe media encoder error message when installing adobe cs4

    new to this.i am getting a error code 1603 stating that there's an fatal error with insatlling ADOBE MEDIA ENCODER in adobe cs4. i can not installed the program. i have a compaq presario that meets the minimum requirements. Ive tried everything from logging in administrator to using clean script to call tech support.please if someone is familiar with this error, help me fix it. tHIS error is driving me crazy.

    the error shows up when i installing disk 1 and it starts off installing the program then i noticed that when i came to installing the encoder the background screen flinches then the error message comes us. when i quit the installer and requests more info, it just gives me that error 1603. please help me.
    im running on WINDOWS VISTA HOME PREMIUM/SP1

  • Adobe media encoder error message - please help

    I purchased adobe creative suite 4 web standard in january of 2010.  I'm in the process of learning how to use all the features.  I am building a website in dreamweaver and wanted to create and import a flash movie.  I opened adobe media encoder from my program files.  I added an avi file to the encoder, chose a medium quality for web, and clicked Start Queue.  I then got the following pop up error message:
    Error Message:
    Adobe Media Encoder Debug Event
    Adobe Media Encoder has encountered an error.
    [..\..\Src\Win\WinFile.cpp-754]
    Please help.
    Thank You.

    This forum is for "flash media live encoder". For Adobe Media Encoder related queries go to Creative Suite forums.

Maybe you are looking for

  • CS4 crashing on opening

    Hello, I'm new to this forum so hope I'm posting in the correct place and asking the question correctly. I have CS4 on a macbook pro and so far have had no problems.   However, for the last couple of hours I've been unable to open Photoshop. It opens

  • Queue Block : Action OPEN_PSA_DATAPACKAGE/2 IS NOT SUPPORTED

    I am getting EDI data from XI system to my BI. These days, I am seeing many entires getting stuck in SMQ2. On checking, the first line always has SYSFAIL error. and the statusText shows as Action OPEN_PSA_DATAPACKAGE/2 is not supported in RED color.

  • How to downgrade from ios 6.0.1 to 5.1.1 on iphone 4s???

    how to downgrade from ios 6.0.1 to 5.1.1 on iphone 4s??? i feel ios 5.1.1 is more comfortable so i wanna downgrade... but i couldnt... can anyone tell me how to do it??

  • Automatic Reorder based Planning

    SAPers... I am trying to update re-order point automatically but with the following calculation: The Calculation is:  (Usage x Lead time / 7) + minimum stock Is there any way to build these custom calculations into re-order points to populate/update

  • Completely uninstall Quicktime Pro 7 for Windows Vista Home Premium 32 bit

    I am trying to uninstall my Quicktime Pro 7 registration, and to not ever see it again in control panel (classic view). Unfortunately, there is a visible registrationcode shown for Quicktime Pro 7(somehow, it simply detected that I had Final Cut Pro