How can i set the character set ???

hello
now i have the following
Message msg =
new MimeMessage(Session.getDefaultInstance(props, null));
how can i set the character set to be 'windows-1256'
pleaze help if u can
thanks very much
Belal

You have to deal with the NLS_LANG environment variable,it is defined as NLS_LANG=<Language>_<Territory>.<clients characterset> .
Where is your oracle client installed? On the the server machine, where the database resides , on another Unix system or is it a Windows client? On Windows NLS_LANG is directly related to the OS settings and stored in the registry, on Unix NLS_LANG is not set automatically and defaults (if not set) to AMERICAN_AMERICA.US7ASCII. If you are working on UNIX, this could be the reason for disordering. I'm not familiar with Chinese, so I don't know the correct setting , but a good approach would be same setting as on the server.
Metalink note 158577.1 describes NLS_LANG very detailed.

Similar Messages

  • How can I change the default setting for downloading photos from email?

    How can I change the default setting for downloading photos from emails I receive?  It shows the default as Photoshop Elements 4.0 and is not supported by this system.  That was my last computer!!
    Thanks,
    Sheila

    That has nothing to do with styles nor Pages, it is a System/Printer Driver setting.
    You can experiment to see if the Printer Settings stick with your document, but in the past this has not worked.
    Peter

  • How to set the character set to default

    Hi All,
    How to set the character set default to Simplified Chinese(GB2312), current we need change it every time.
    Thanks in advance.

    Hello Michael,
    when we log in SAP in ZH language the character set is getting defaulted to Simplified Chinese(GB2312). But currently the log in Language is in EN and hence the character set to be defaulted to Simplified Chinese(GB2312).
    Also please let me know where is the option for GUI setting?
    Thanks Again in Advance.

  • How can I increase the character limit of my text messages for Droid Maxx 4.4?

    How can I increase the character limit of my text messages for Droid Maxx 4.4?

    Send as a MMS.

  • How can i compare the character fields?

    I have a requirement to compare the character fields .
    I have to compare the 2 character fields of a table CDPOS
    As follows .
      If CDPOS-VALUE-OLD  GT  CDPOS-VALUE-NEW
          Populate    REDATED = ‘YES’.
    ELSE
          Populate  REDATED = ‘NO’.
    My doubt here is how can we compare the character fields.?
       When I do Extended Program Check: I am getting error like this ?
    Greater than/less than comparisons with character type operands may not be portable
    Please give me idea .
    Thanks ,
    Suresh Kumar.

    Hi suresh,
    DATA : a TYPE char10  VALUE 'DBCD',
           b TYPE char10  VALUE '4234',
           c TYPE char10  VALUE '3456',
           d TYPE char10  VALUE 'ADA',
           e TYPE char10 VALUE  '234567'.
    IF b GT c.        "this case checks for numeric values
      WRITE :/ 'B is bigger'.
    ELSE.
      WRITE :/ 'C is bigger'.
    ENDIF.
    IF a GT d.      "this case checks for alphbetical order
      WRITE :/ 'A is bigger'.
    ELSE.
      WRITE :/ 'D is bigger'.
    ENDIF.
    IF strlen( a ) GT strlen( d ). "this case checks for no of chars
      WRITE :/ 'A is bigger'.
    ELSE.
      WRITE :/ 'D is bigger'.
    ENDIF.
    IF a GT c.      "this case first alph then numerics
      WRITE :/ 'A is bigger'.
    ELSE.
      WRITE :/ 'D is bigger'.
    ENDIF.

  • How can I restore the character viewer?* Changing options in Language/KeyboardPref does not help

    How can I restore the character viewer?* Changing options in Language/Keyboard Pref does not help...

    Tom may be refering to these..
    /Users/YourUserName/Library/Preferences/ByHost/com.apple.HIToolbox.12digit Hex#.plist
    /Users/YourUserName/Library/Preferences/com.apple.CharacterPaletteIM.plist
    /Users/YourUserName/Library/Preferences/com.apple.CharacterPicker.plist

  • Connot get it to accept cookies; privacy settings are re-set each time after I change them. How can I get the privacy setting to stick and accept cookies?

    I need to accept cookies to log into a technical site. I clear all cookies and the history and follow the instructions for setting privacy options to "Use custom settings for history" and to accept all cookies. When I go back to try logging into the site, it still tells me cookies aren't accepted. When I go back to Options-Privacy, the setting has been changed back to "Remember history" from "Use custom settings for history". I have done this about 5 times, trying various options, closing Firefox after making the change and starting it again - nothing works. How can I get the privacy settings to stay as I set them and accept cookies?

    Blocking all cookies in Safari does not work. Deleted cookies will not stay deleted. There are numerous threads on this going back years, both in these forums and elsewhere. Many claim to have submitted the issue to Apple, but I have never seen anyone post a reply.
    I have seen many suggested fixes that involve finding the cookies file, some including Terminal manipulations, and none seems to work universally. I can find noplace where Apple addresses this officially with an actual Apple-approved explanation or how-to.
    Bottom line, your browser's security features should do what they claim: delete cookies. When they come back without ever even visiting another page, this is clearly not working in the way a reasonable user would expect.
    Bottom line, Safari does not protect users' privacy in the way it pretends to and, after so many years of this issue, it appears that Apple wants it this way.
    Having spent way too much time on this, I realize the choice is between Safari which is pretty well optimized; Firefox which is a lot pokier, at least for me; and Chrome, which I assume funnels personal information directly to Google.

  • How can I change the sensitivity setting on my iPhone 5?

    How can I change the screen sensitivity on my iPhone 5c?   I am constantly muting calls/ hanging up on calls, dialing during a conversation, etc.  This is a new issue with the phone, I noticed.
    Thanks

    Hi This cannot be changed Try a Reboot press & hold power button & menu button hold both down until you see Apple Logo . Cheers Brian

  • Setting the character set

    Hey all,
    i am serializing some objects to a file, sending the file to a server and then deserializing the objects there...
    all my objects are of the type of the following Word class :
    public class Word {
         String source;
         String translation;
         public Word (){
              this.source=null;
              this.translation=null;
         public Word ( String source, String translation){
              this.source=source;
              this.translation=translation;
         public String getSource(){
              return source;
         public String getTranslation(){
              return translation;
         public void setSource(String source){
              this.source=source;
         public void setTranslation(String translation){
              this.translation=translation;
    }i have another class which makes word objects and sets data to them before serializing them to a file... How can i insert strings of different character sets? for example if the word class is used for translation the source attribute may be in English and the translation in Greek... how can i save these data to the object and then to the file without having conflicts with the character set..?
    thx!

    Start a reply and look for "Add images" below the text entry box here on this thread.
    Automatically generated email messages tend to suffer in this way; they are often generated by scripts (rather than by proper email clients) and don't adhere closely to the accepted standards for email communications.
    They probably look fine in Apple's Mail. Why would they expect you to use anything else? ;-)

  • XML as target file - how can i change its character set?

    Hi all,
    i need to create my target as XML-file und to save all my information there, but with other character set (not with default). In other words i must have in XML-file in header
    <?xml version="1.0" encoding="ISO-8859-15"?>.
    Now i have
    <?xml version="1.0"?>.
    What can i do?
    Thanks in advance.

    I don't think Finder does this (I've tried).
    iTunes does though. Where you can set artwork or the "poster frame"...
    This may not be what you want but if it helps, I know 2 ways  do this is
    Open the video in QuicktimePlayer7 | View | Set Poster Frame (even then, you might need to save it as .mov (ie in a 'mov container').
    Drag the file into iTunes and set the artwork (as in http://www.dummies.com/how-to/content/adding-album-cover-art-or-images-in-itunes .html)
    From there, iTunes will use that frame as the "poster frame" ie the photo/frame that shows when you browse your videos. Which is what you want, but limited to iTunes.
    When I do either of these above, the frame I set does not show when exploring files in "Finder" (or in the other Explorer tool I use called "Pathfinder").
    So it maybe, that exactly what you want, is not possible.

  • How can i have the ToolTip set to rows of the table?

    hi,
    I have a Dialog window that diaplays a table contating the information like student name, student id, student address etc. But the problem what i am facing now is i want ToolTip to be set to this table. i.e, when i move the cursor over this table, ToolTip must be set to the student name of the perticular Row to which the mouse is pointing.
    I don't select the Row... but just move cursor over the table.
    How can i achieve this?
    Urgent Please....
    Thanx in advance,
    -Soni.

    probably best to add a mousemotionlistener to the table and by probing the generated mousevent (get the location of the mouse) on moving the mouse you can change either the tooltiptext or popup your own popup menu.

  • How can I change the itunes set up on my sons iphone.   It is the same itunes acct as my ipad  and computer.

    I have an apple id and itunes that I use with my ipad.   My son got an iphone and so he could download songs,and since I was the one that set up his phone to use, I used my itunes acct.    Problem is, when I synk the ipad to itunes, all his downloads load on the ipad and laptop.     I was thinking of getting an iphone.    But I don't want all his songs on my phone but since I have already paid for his music and other downloads, how to I move them or can I?  

    The iphone will only sync what you set it to sync.
    If you do not want his music, then simply do not select it to sync.

  • How can I see KSC5602 character set using JDBC thin driver

    After I change character set from USASCII7 to KO16KSC5601, I
    cannot see korean from the clients
    using JDBC thin driver.
    But, I can see korean clearly using sqlplus at serer, or
    application using SQLNet.
    I use Oracle Enterprise Server 8.0.4.1.0, jdbc thin driver
    8.0.4.0.6 on Windows 98. I read that all bugs realated
    to multibyte language are fixed in Oracle8. What can I do to
    solve this problem?
    PS.server: Oracle 8.0.4.1 on Digital Unix 4.0b, client: jdk1.1.8
    on Windows98. I used the command.
    null

    The easiest thing to do is download it as an archive with your applet.
    Otherwise, you have to have the files on every client machine.
    For netscape, put the classes111.jar in the java classes folder typically:
    c:\ProgramFiles\Netscape\Communicator\Program\java\classes.
    I'd expect that IE would be setup in a similar way.

  • How can we access the cookie set by cfheader in the same request?

    I've set a cookie in my application.cfm using cfheader and in the same request i need to access the cookie. How can i do this?

    Unless you know the values you're setting in the cookie explicitly then I don't know if you can - not sure if it's one of those things whereby a cookie doesn't exist until it's hit their browser, and if you page hasn't finished rendering then it hasn't hit their browser.
    I'd suspect you'll try it and either it'll work or it won't.
    If you're setting the cookie explicitly with you own UUID's or similar you will of course know what you'll be setting it to.
    If that made any sense.
    Which I'm pretty sure it didn't.
    O.

  • How can I change the printing setting from head to toe to head to head, to print a pdf document

    Hi everyone, I'm printing a booklet from a pdf document. I have used the two-sided option but it reverses the position of the second page.
    How can I set it up  head to print what you will call in a pc enviroment: head to head?
    Thanks,

    Terence,
    perhaps Dukeasooke is using mixed language settings like me.
    I found that changing "Measurements Units" did not suffice, if the region is still set to Germany. I had to actually set the region in the Language & Text preferences to a country that uses "US" units in addition to ensuring that the "US" units were selected. Also, with Mavericks it is essential  to restart the system before launching iPhoto again after changing "Language & Text" preferences, or they may not take.
    -- Léonie

Maybe you are looking for

  • System is not accepting commands from autoit

    Hi, I've developed an application in autoit. It is for opening an application and sending some key stroke automatically and reading the title of the new windows that comes after sending keystroke. It worked well in windows xp as well as some windows

  • Project Online External User Access

    Hello, I'm testing the Project Online Preview and I would like to share the deliverables list on a project site with an external user (a client for example); so I configured the site collection with Project Web App to the "Allow external users who ac

  • Authorisations for STO

    Dear Alll, While issuing material against cross plant (same comp) STO, error comes " you are not authorised". We give him authorisation in Object M_MSEG_WWA - Goods movement plant for activity 01 and Plant XXXX But after giving him this authorisation

  • Populate people picker from another list

    Hi, I have a task list that i want to populate the assigned to column with lookup information based on another list, by matching the "Project Name" of the two lists by using SPD 2013, no coding  Any thoughts? Thanks a lot in advance

  • Hgrid Not Rendering the Advance Table Dynalically.

    Hi, I have created a Hgrid region and a Tree region. My requirement is when some one clicks on any of the Node ids from the grid, a Advance table has to be rendered dynamically. This works correctly only if I have a Tree Region. But if I include the