How to use the character encoding model to use ' �'  in java

hi
I have to use the special characters like '�' using java.but when '�' character is transferred to data base or is displayed in my form,it is shown as '?'.but i need to display the original characters in the form of what it is.
what can i do as i expects the result .i needs it very urgently.so reply to me as soon as possible.
advance thank you
rgds
Oasisdeserts

Java stores all characters as 16 bit UNICODE (which has plenty of room far more exotic characters than Greek). Every time character data is brought into, or stored from the Java environment it passes through a specific character encoding. If you don't state the encoding explicitly it uses the default encoding of the machine it's running on (which is typically oriented to the language set in the locale.).
With a database the database driver is supposed to do any necessary translation. The non-latin character could be stored wrongly, the database could be returning it wrongly or whatever's creating your form could be interpretting it wrongly, or lack the capacity to display the character.
If it's, say, a JSP try setting the page encoding to UTF-8. Try dumping the characters read from the database in HEX and look them up at www.unicode.org.
Take a look at the database setup information, some have an option of storing characters as UNICODE or ASCII.
The "?" is substituted whenever a codec can't make sense of the codes it's translating, either the byte array is invalid or the UNICODE character can't be represented.

Similar Messages

  • How to determine the character encoding of a string

    I'm under the impression (however misguided this may be) that one of our Databases (it is set to 8859) is outputting it's values as 8859 charset to Java, who in turn is preserving this encoding.
    Printout on the contents of data.get(info) yields garbage.
    However, Doing
    value = new String((data.get(info).getBytes("ISO-8859-1")), "UTF-8");and printing 'value' yields the proper Asian characters.
    Is there a way to determine the Charset of a string somehow?

    Whereas some database drivers for other languages (C,
    C++) make it possible to set the encoding on the
    client side irrespectively to the database encoding
    setting. So you can skew your database with those
    programs.Some JDBC drivers allow one to specify the encoding as part of the connection URL. This may be a general property of JDBC drivers but, since I have now retired, my JDBC knowledge is getting as dated as I am so I don't really know.

  • When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    When I load certain websites the the writing is all squashed up. I correct this by changing the character encoding setting. I am using the latest Apple Mac machine. Thanks in advance

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • How to use the external encoder

    Can someone please tell me how to open the external encoder so i can copy and paste links into it to use my web cam?
    Thanks

    Find a forum for whatever product this involves and post your question there.
    Here is a link to a page that has links to all Adobe forums...
    Forum links page:
    https://forums.adobe.com/welcome

  • I am using the hp 3525 model printer , i like to know how to take photo print from the printer

    Hi,
    I am using the hp 3525 model printer , i like to know how to take photo print from the printer .
    Regards
    Mukesh.R

    Hi Mukesh,
    I'd like to help, but can you clarify the issue?  Are you asking how to print a photo from your printer?  Also, can you confirm that your printer is a HP Deskjet Ink Advantage 3525 e-All-in-One Printer?
    Thanks!
    Tara
    **Although I am an HP employee, I am speaking for myself and not for HP.

  • How do i use the character viewer

    can anyone tell me the system in using the character viewer, i can drag and drop but surley there must be and easier way than that!
    Thanks.

    From Mac Help:
    Enter special characters and symbols
    Use the Character Viewer to enter special characters and symbols, such as mathematical symbols, letters with accent marks, emoticons, arrows and other “dingbats,” into your documents.
    You can also use the Character Viewer to enter Japanese, Traditional Chinese, Simplified Chinese, and Korean characters, as well as characters from other languages.
    Enter special characters or symbols from the Character Viewer
    Open a document, and place the insertion point where you want the special character or symbol to appear.
    Choose Edit > Special Characters to open the Character Viewer, or choose Show Character Viewer from the Input menu in the menu bar (looks like a flag or character).If you don’t see Show Character Viewer in the Input menu, follow the steps in this topic to show the Character Viewer in the menu bar.
    Select a category from the list on the left, and then select the character you want to use.Use the Recently Used or Favorites sections in the Character Viewer to quickly enter frequently used characters or symbols.
    Add a character or symbol to the Favorites section in the Character Viewer
    Choose Edit > Special Characters to open the Character Viewer, or choose Show Character Viewer from the Input menu in the menu bar (looks like a flag or character).If you don’t see Show Character Viewer in the Input menu, follow the steps in this topic to show the Character Viewer in the menu bar.
    Select a category from the list on the left, and then drag the character you want to the Favorites section.
    Customize the Character Viewer
    If you don’t see the character or symbol that you want to use, try customizing the Character Viewer.
    Choose Customize List from the Action pop-up menu (looks like a gear) in the top-left corner of the Character Viewer.
    Select the categories that you want to appear in the Character Viewer, and then click Done.
    Show the Character Viewer in the menu bar
    If the character doesn’t appear in your document, you may be using an app that doesn’t support that character. Try using a different character or inserting the character in a different app.
    See the special characters or symbols you can enter using keyboard shortcuts
    You can use the Keyboard Viewer to help you learn which keyboard shortcuts to use to enter special characters or symbols.
    Turn on the Keyboard Viewer
    Choose Apple menu > System Preferences, click Language & Text, and then click Input Sources
    Select the Keyboard & Character Viewer checkbox.
    Make sure the checkbox next to each input source you want to use is selected and that “Show Input menu in menu bar” is selected.
    See the special characters or symbols you can enter
    Choose Show Keyboard Viewer from the Input menu in the menu bar (looks like a flag or character).
    Press any modifier key or combination of modifier keys to see the different special characters or symbols you can type.For example, hold down the Option key or the Option and Shift keys.
    To place a special character or symbol that you see in the Keyboard Viewer in your document, press the modifier key or keys you pressed in step 2 and press the key on your keyboard that is in the same place as the special character or symbol you see in the Keyboard Viewer.
    If you don’t see the special character or symbol you want to use, enter the special characte

  • How to slove the character-converting problem?

    I'm developing a Japanese Application.
    In jsp , i get the string "6-2-3" which is all input by Japanese. But after i sent it to JavaBean as a parameter,it turned out to be "6?2?3". I 'm really confused by it.
    By the way , how to get a character's unicode in java?

    the primitive type char is used to store unicode values (\u0000 to \uFFFF, so 0 to 65335). java.lang.String are composed of char and so are unicode aware too. To get chars from your string you have 2 possibilities:
    - String.toCharArray()
    - String.getChar(int)
    About having a japanese user input of "6-2-3" and getting in your bean "6?2?3", that's definitely an encoding problem. The user input field does not use the ame encoding as your javaBean, so that's why one generate char that are not well understood by your bean. I'm sorry, I only know the problem, but not the solution.

  • How to save the data to sap abap using Adobe Flex

    Hi Everybody......
    I am new to Adobe flex with sap abap.
          How to save the data in sap abap using Adobe Flex coding is Action Script and using RFC web service.
    Please give me any suggisions on that.
    Thank you
    Venkatesh V

    Hi Venkatesh,
    Try with folowing coding...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
         initialize="initApp()">
         <mx:Label x="10" y="23" text="Airline" width="90" id="lblAirline"/>
         <mx:TextInput x="108" y="21" id="txtAirline"/>
         <mx:Button x="10" y="49" label="Get Data" id="btnGetData" enabled="false" click="getData()"/>
         <mx:DataGrid x="10" y="97" id="dgFlightData" dataProvider="">
         </mx:DataGrid>
           <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.rpc.AbstractOperation;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.soap.LoadEvent;
                   import mx.rpc.events.ResultEvent;
                   import mx.rpc.soap.WebService;
                   [Bindable] public var flightData:ArrayCollection;
        private var flightWS:WebService;
         private function initApp():void{
              flightWS = new WebService();
              flightWS.wsdl = "http://uscib20.wdf.sap.corp:50021/sap/bc/soap/wsdl11?services=ZGTEST&sap-client=000";
            flightWS.addEventListener(FaultEvent.FAULT,onWSError);
              flightWS.addEventListener(LoadEvent.LOAD,onWSDLLoaded);
             flightWS.addEventListener(ResultEvent.RESULT,onFlightWSGotResult);
              flightWS.loadWSDL();
    private function getData():void{
              var operation:AbstractOperation = flightWS.getOperation("ZGTEST");
              var input:Object = new Object();
              input.Airline = txtAirline.text.toUpperCase();
              operation.arguments = input;
              operation.send();
         private function onWSError  (event:FaultEvent):void{
         private function onWSDLLoaded(event:LoadEvent):void{
              btnGetData.enabled = true;
         private function onFlightWSGotResult(event:ResultEvent):void{
              flightData = event.result.SFLIGHT;
              ]]>
         </mx:Script>
    </mx:Application>
    Regards,
    Vinoth

  • Using the " character in a to be executed command (EMM)

    Hi,
    I ran against a small challange building a feature in a EMM based menu.
    I would like to have an user to change the number dialed in a chat-script but the chat-script command uses the character " in it's command.
    The same character " is also used to mark the beginning and the end in the <IOSExecCommand> and the <IOSConfigCommand>.
    When executing the feature it give's an error message back stating: EMM TCL Error: extra characters after close-quot.
    Which is not weird because there are a lot of " in the command line and normally you can put multiple command-lines in a single ExecCommand - or ConfigCommand line to mark the beginning and the end of a single command-line.
    According to TCL language script you could write the character " as \" or \\" but neither one of them does the trick to make it work.
    The ConfigCommand I want to execute looks like this:
    <IOSConfigCommand>"no chat-script internet " "chat-script internet "" "ATDT*98*2#" TIMEOUT 60 CONNECT"</IOSConfigCommand>
    Does anyone have an idea how to solve this?
    I'm kind of stuck with it.
    Kind regards,
    Jorn van Riel

    Instead of using IOSConfigCommand, use EmbeddedTCL instead.  For example:
          ios_config "no chat-script internet" {chat-script internet "" "ATDT*98*2#" TIMEOUT 60 CONNECT} 

  • How to change the Character Set from AL32UTF8 to WE8DEC

    Hello!!
    I want to know how to change the character set in the database from AL32UTF8 to WE8DEC.
    I tried to use the comand ALTER DATABASE CHARACTER SET but I got an error because WE8DEC is not a superset of AL32UTF8.
    I need to import tables from a server that uses WE8DEC. So when I do the import to my server, wich has AL32UTF8 , I can't import the rows that include an Ñ.
    So I want to change the caracter set to WE8DEC. How can I do it?
    Is it needed to change the language configuration? The remote server has AMERICAN_AMERICA, and my server has MEXICAN SPANISH_MEXICO (both uses text in spanish).
    Thanks a lot!!

    When you export from WE8DEC server what did you use
    for NLS_LANG char set? And when importing?
    The export was done in another computer because I can't do the export in the server (I have 10g, and the remote server has 9i and the export is not working). In my server, when I tried to do the import, the NS_LANG value was MEXICAN SPANISH_MEXICO.WE8MSWIN1252.
    When I try to import to my database I got the error:
    import done in WE8DEC character set and AL16UTF16 NCHAR character set
    import server uses AL32UTF8 character set (possible charset conversion)
    export client uses WE8MSWIN1252 character set (possible charset conversion)
    . importing USRMCR06's objects into PRIMARIZACION
    . . importing table "CHG_FONDOS_MARZO_CD_MOR"
    IMP-00019: row rejected due to ORACLE error 12899
    IMP-00003: ORACLE error 12899 encountered
    ORA-12899: value too large for column "PRIMARIZACION"."CHG_FONDOS_MARZO_CD_MOR".
    "NOMBRE" (actual: 41, maximum: 40)
    Column 1 16623436
    Column 2
    Column 3 Pymes_1
    Column 4

  • How to decide the no.of models required for our application implemention

    Hi ,
    i ahve one basic quetion in WD development.
    how to decide the no.of models (aRFC ,EJB..etc )  required or needed to get the functionality of our application ?
    for Ex:
    my application consisits of belwo functionalities.
    1. serach for the country
    2.display the bank lis for the above country
    3.display the bank details of the selected bank in the step no.2
    any one of you explain me how to decide the no.of models required for avoe functionalities .
    or is it  in a single model  we can include the all the above functionalities ?
    Regards,
    Govindu

    Hi
    It all depends on application to application and requirements better to consult with functional guys or team lead what exectly they want to implement .All could be possible with RFC or EJB , some alternatives are
    1. serach for the country  :  For this standard java API is there which populate all country (no need any rfc or ejb)
    2.display the bank lis for the above country : (Check if there  any webservices for this or create manually value help for this , even if u will use the RFC abaper guys will do the same )
    3.display the bank details of the selected bank in the step no : step 2 will solve this also with one additional field i.e address and details.
    I hope you agree with the point that stand alone WD app can do these all thing without any model.
    Best Regards
    Satish Kumar

  • Using the Soap Encoding schema within an XSD

    Hi,
    I am trying to create some XSDs based on the types from the auto-generated WSDLs in JDeveloper. However, I find that while the Array type works fine in the WSDL, I cannot seem to get it validate correctly in my XML schemas, possibly due to some namespace error.
    The current code in the XSD is given as:
    <xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
    <xsd:complexType name="VesselQueryResult">
    <xsd:all>
    <xsd:element name="vesselNames" type="ArrayOfjava_lang_String"/>
    </xsd:all>
    </xsd:complexType>
    <xsd:complexType name="ArrayOfjava_lang_String">
    <xsd:complexContent>
    <xsd:restriction base="SOAP-ENC:Array">
    <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    When I tried to add this XSD using as a user schema, however, below validation error is being displayed:
    Error: Line 0, Column 0: Invalid reference: 'http://schemas.xmlsoap.org/soap/encoding/:Array'
    I tried to qualify the SOAP-ENC namespace with the schemaLocation, but another error was displayed:
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"
    schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
    oracle.xml.parser.schema.XSDException: Server returned HTTP response code: 407 for URL: http://schemas.xmlsoap.org/soap/encoding/
    I am wondering how JDeveloper supports the SOAP-ENC schema for use in XSDs. Do I need to add the Soap Encoding schema as a user schema, or is there a way I might reference it similar to the way that auto-generated WSDLs seem to deal with it? Any information regarding this would be greatly appreciated.
    Thank you and regards.

    I deleted the two lines of coding below:
    utl_http.set_proxy('www-proxy', NULL);
    utl_http.set_persistent_conn_support(TRUE);
    and then I set the utl_http.set_persistent_conn_support() to False to get that error message. Seems like the website in question doesnt have the webservice anymore because the error has to do with the parsing of the WSDL file.... which probrably doesnt exist.
    Im just trying to get a working example of using a third party webservice to return a value to be displayed in the database.... know of any good examples? The ones im using seem to be pretty out dated... the barnes and nobles example just times out....

  • For some reason my app store email is incorrect on my ipad 1 how do i change the email address? please help me as this is most frustrating. i want to use the same email address i use on my Iphone and I mac

    Please help.
    for some odd reason my app store email address on my Ipad 1 is incorrect. How do i change it?
    i would like to use the same email address i use on my I Phone and I Mac
    Please help as i find this situation most frustrating.
    many thanks
    Joao

    Do you perhaps have more than one Apple ID?  If your response is "No," are you absolutely positive?

  • I set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same ID). how do i consolidate the two users on my new mac book?

    i set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same apple ID). how do i consolidate the two users on my new mac book?

    Well if you use the Finder Go menu to Computer, a window opens up double click on your boot drive and then on Users folder, open the other user folder and open Public and drop your files into DropBox
    When you do this it will copy them and change the permissions and user assigned to it, so log into the other user and place them into your respective normal folders.
    Once you have all your files over and don't need the old user, use System Preferences > Accounts to delete it if you wish, however it's good two Admin accounts on the machine in case something bad happens in the other. Some people for security reasons on use a Standard account for most uses and a emergency Admin account.
    One can still do most Admin things in Standard user.

  • How to update the data in sqlserver table using procedure in biztalkserver

    Hi,
    Please can any one answer this below question
    how to update the data in sqlserver table using procedure in biztalkserver
    while am using executescalar,typedprocedure getting some warning
    Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
    Please send me asap....
    Thanks...

    Hi Messip,
    A detailed error would have helped us to answer you more appropriately but
    You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
    http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

Maybe you are looking for