Re: How to change the NLS_NCHAR_CHARACTERSET from WE8ISO8859P1 to AL16UTF16 ?

Hi,
Now I have a new problem.
I have a Oracle9i instance, with this configurations.
PARAMETER VALUE
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET WE8MSWIN1252
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 9.2.0.1.0
I have a xHarbour DOS Client program that reads, shows in the screen, and write "perfectly fine" a text with Brazilian accentuation stored in a CLOB field.
Following you can see the sample of the text with Brazilian accentuation in my DOS application http://www.screencast.com/t/U5PXwCEo8
In order to my xHarbour DOS Client program works fine with this Brazilian accented characters, I must to set:
SET NLS_LANG=PORTUGUESE_BRAZIL.WE8MSWIN1252
And all is OK from my xHarbour DOS Client program.
My problem is because when I query this data manually using a SELECT from any client DOS/WINDOWS program like SQLPLUS, SQLDEVELOPER, TOAD, etc, I get bad characters instead the correct Brazilian accented characters.
Following you can see the same text into the Toad http://www.screencast.com/t/A1tal2Rtg
(you will see bad characters instead the correct Brazilian accented characters).
Following you can see the result of querying this field using a SELECT from SQLPLUS.
Certifico que por decis„o proferida no processo n§ @@@@@@@@@@@@@@, 
foi reconhecida a n„o incidˆncia do ITBI na transa‡„o do(s) im¢vel(is) 
abaixo caracterizado(s), com base no art.156, @ 2§, I, da Constitui‡„o 
Federal de 1988 e no art.6§, II, da Lei Municipal n§ 1.364 de 19/12/1988. 
(you will see bad characters instead the correct Brazilian accented characters).
How to make "SQLPLUS", "TOAD" (and others Windows or DOS Clients programs) show me the Brazilian accented characters correctly?
Thanks in advance,
Luigggye

OK, if you look at the word "decisäo" in your DOS program (shouldn't it be "decisão", by the way?), it is encoded by the following bytes: 64,65,63,69,73,84,6f.
d = 0x64
e = 0x65
c = 0x63
i = 0x69
s = 0x73
ä = 0x84
o = 0x6fSo, the code for "ä" in your database is 0x84. If you look at the definition of the WE8MSWIN1252 character set, for example here: http://msdn.microsoft.com/en-us/goglobal/cc305145 , you will see that the expected code is 0xe4. On the other hand, if you look at the definition of WE8PC850 here: http://msdn.microsoft.com/en-us/goglobal/cc305160 , you will see that the code for "ä" is 0x84 -- the one you have in your database.
This proves my initial diagnosis that you have incorrectly labeled data in your database. By setting the NLS_LANG to the same character set as the database, you created a so-called pass-through configuration. This configuration does not require any character set conversion, hence what you put into the database is what you can retrieve unchanged. As CHCP shows, your DOS program (the correct name is actually "console mode program") works in the Microsoft OEM Code Page 850, which corresponds to the Oracle character set WE8PC850. So this is the character set that your application sends to Oracle and this is what gets stored in the database. If you set the NLS_LANG to .WE8PC850 before inserting data, the database would know that the received data is in WE8PC850 and would convert it properly to the database character set WE8MSWIN1252. This data could then be properly converted as required for other clients such as Toad or SQL Developer. As the NLS_LANG was WE8MSWIN1252, Oracle wrongly assumed that the application data is already in WE8MSWIN1252 and did not do any conversion. You ended up with mislabeled data.
To fix the issue, you should repair the database character set declaration to correspond to the actual database content, i.e. WE8PC850. You should then change the NLS_LANG for the DOS program (and only for the DOS program, not for Toad or other Windows GUI apps) to WE8PC850 as well. I am assuming here, and this is important!, that all non-ASCII (e.g. Portuguese) characters in your database come from this one DOS program.
To repair the database character set declaration:
1) Upgrade to 10g or 11g
2) Run the csscan utility with parameters FROMCHAR=WE8PC850 TOCHAR=WE8PC850. The scan report from the utility (scan.txt) should report only changeless data.
3) After running the scan, execute the ?/rdbms/admin/csalter.plb script in SQL*Plus.
-- Sergiusz

Similar Messages

  • HT1311 how to change the payment from visa to none payment iPhone 4S

    how to change the payment from visa to none payment
    iPhone 4S

    martinimartini wrote:
    I have the same problem. I used Pay Pal payment before but Pay Pal limited my account so I can only use Pay Pal until after 180 days according to their specific regulations. I also do not have any credit card. How am I supposed to pay for my Skype that I have been using since start of Skype. I really need outgoing calls.  Martin
    Hi,
    As I understand you have a restriction on your PayPal account, unfortunately this is something Skype can't help you with.
    But you can try alternative payment methods: www.skype.com/intl/en-us/prices/ways-to-pay/
    Another option is to let your friend set up Skype Manager account, purchase credit there and allocate it to you: https://support.skype.com/en-us/faq/FA10519/What-is-Skype-Manager-and-how-does-it-work
    Andre
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • How to Change the Fields from Input mode to display mode

    Hi experts,
    Here is my business requirement. I need to show certain fields in the PRICING TAB OF SALES ORDER  in display mode. Now for this i am using the BADI definition CRM_PRICING_BADI.
       Now, can anybody tell me how to change the field type from input mode to change mode?

    Hi Karan,
      In your BADI has a parameter CT_INPUT_FIELD_NAMES with one field called CHANGEABLE with values:
         Field Can Be Changed
    A     Field Cannot Be Changed
       Assing this values to your fields according with your requirements.
    Regards.
    Manuel

  • How to change the value from one input control to another input control?

    Hi Experts,
    I want to change the value from  one input control to another input control. For Example if i change month in first tab. it should reflect in second tab also. How should we acheive through input control or some other option.
    Here I attached screen shot.Please help me for this

    Hi,
    It is not possible to have Input controll in all tabs that will be set from another .
    But There is one workaround .
    Follow the link below .
    http://davidlai101.com/blog/2013/08/13/web-intelligence-input-control-that-affects-all-tabs/

  • How to change the email from the iCloud account info?

    HOw to change the email set in the iCloud account info? My Apple ID is different from my icloud account I like to keep same email for both.
    please help with the steps.
    thanks

    You can change the non-Apple address which forms your ID to another non-Apple address at http://appleid.apple.com . However you cannot make your @icloud.com address into your ID address.

  • How to change the valid from date of the bom header?

    ECM is active in the system.
    I want to change the valid from date of the BOM header with the help of a change number.
    How can I change it?

    Hello
    Lets assume that, we are going to change Management for controlling Valid From date
    Steps to be followed for creation of Change No
    Tcode CC01 for Change No
    Click on Change Master
    Once you enter into Change master, maintain the description
    In the Valid from Date, maintain the date from which you BOM should be current
    Maintain the Status (01)
    Click on Ojbect Type, maintain for which Object types is the Change no needs to be active i.e. for BOM, Rtg, etc
    save the Change No
    After the change no is created
    Enter the Change No during the creation mode of BOM
    THe system copies the Valid from date from Change No

  • How to change the datasource from one server to another server?

    i need to change the datasource from development environment to production server. i had configured the JNDI informations like the following in the 'context.xml':
    <Context path="/RFT" docBase="RFT" reloadable="true">
    <Resource
    auth="Container"
    type="javax.sql.DataSource"
    driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
    validationQuery="select 1"
    name="jdbc/datasource"
    username="sa"
    password="$m1sbag$"
    maxIdle="-1"
    maxActive="0"
    maxWait="5000"
    url="jdbc:microsoft:sqlserver://172.24.151.149:1433;databaseName=Projectgold" />
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>
    and in 'web.xml' included the following code:
    <resource-ref>
                         <res-ref-name>jdbc/datasource</res-ref-name>
                         <res-type>javax.sql.DataSource</res-type>
         <res-auth>Container</res-auth>
    </resource-ref>
    and mentioned the JNDI Connection Name in the .rpt file as 'jdbc/datasource', but still getting the same connection which one is configured during the report design. need a help to resolve this...
    Thanks,
    Ram

    eventhough it's working fine. I may have deployment problem. Anyway thanks for the reply.
    Regards,
    Ram

  • How to change the CODEPAGE from 1100 to 4110 in icwebclient

    Hi ,
    I have one issue with export to excel in ic webclient (CRM 5.0).
    1. In ic webclient , there is a export to excel button.During export to excel, some special characters are not showing properly in the excel sheet. But in SAP GUI and IC WEB screen, there is no problem.
    Example: in SAP GUI and iC WEB client screen, the Business partner name is Andrea Petõ  .  But in the excel sheet the BP bame is displaying as  Andrea Petõ which is wrong
    During debugging the code page is coming as 1100. In debugging if  i change this code page to 4110 then its dsiplaying the correct chanracters.
    So could any one please tell me how to convert the code page in 1100 to 4110 by coding in ic webclient...
    Thanks
    Sudhansu

    Hi Sudhansu,
    as a matter of fact I faced a very similar issue back on CRM 5.1 with the excel download in .csv format. All our russian and polish characters were messed up. After some discussion who is responsible SAP decided that microsoft was...
    Anyway: The problem was indeed the codepage conversion. Our CRM was on unicode but the downloads for some reason not.
    To make the story short: After SAP telling us that it is not possible, I found those blogs by Thomas Jung dating about five years back: http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414800%29ID0069627650DB02207158622940509098End?blog=/pub/wlg/675
    Suppose you will be able to solve your problem with this information.
    Note: This forum is for WebClient UI. This is the UI technology of CRM 5.1 and after. There should be an extra ICWC forum somewhere.
    cheers Carsten

  • How to change the language from French into English in Photoshop CC in Creative Cloud

    Hi,
    I recently took a subscription for Creative Cloud (LR5 and Photoshop CC). I live in France but I am more used to English terminology and I'm currently doing Photoshop as e-learning on an American forum. (I'm not French). I managed to change the default language into English in LR5 but not in Photoshop. Could you please advise me how to proceed.
    Your help would be much appreciated.

    Hi Mariemeria,
    Please refer to the following link to adjust the install language for creative cloud :
    http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html
    Regards,
    Akshay

  • How to change the language from english to punjabi in Xcode?

    i am trying to make an app for my religon and it requires me to make those letter sysmblos and i want to know how to change a language in xcode
    Thankyou
    reply please ASAP

    have you activated the Gurmukhi keyboard in system preferences/language and text/input sources and then selected it in the "flag" menu at thr top right of your screen?

  • How to change the language from french to english?

    How can i change the phone language into english?

    Settings-->General-->International-->Language
    then choose the language.

  • How to change the webserver from one server to another server

    Hi all,
    Can you please provide the document for changing the web server location from one server to another server?
    Thanks in Advance.
    Thanks & Regards,
    Siva Prasad B

    Siva Prasad wrote:
    Hi Michel,
    Coping PS_HOME is enough to relocate the web server? And Michel and I said earlier you need to reinstall your webserver... and redeploy the PIA, what's not clear ?
    Nicolas.

  • How to change the scene from an external class?

    I'm trying to change the scene (gotoAndPlay(1,"secondScene")) from an external as3 class from flash professional, but I can't. I also tried root.gotoAndPlay(1,"secondScene") and stage.gotoAndPlay(1,"secondScene"). What is the better way to do it?
    Thank you.

    Its crucial that if you want to access root or the displaylist in general that an instance of your class is added to the displaylist as child. This is achieved by sth like:
    var _myClass:myClass = new myClass();
    addChild(_myClass);
    only then you will be able to reach root
    your class also has to met certain conditions: it must at least extend DisplayObject but its common that it extends MovieClip.
    so a basic class should look sth like this:
    package  {
        import flash.display.MovieClip;
        public class myClass extends MovieClip {
            public function myClass() {
                // constructor code

  • How to change the commands from a Form when a certain item is selected???

    Hello,
    I'm developing a J2ME application and I'm having some problems. I have more items on a form and I when i"m moving from an item to another I want that the commands of the form to change. Is that possible? How can it be done? I've tried some ways but without success. Please help.
    Thanks

    There is no focusListener and there ain't any focus events in j2me,
    if you want to have this effect you need to have only one command per item
    so that it won't appear in 'options' menu

  • How to change the language from Portuguese to English ?

    good afternoon,
    installed to test creative cloud in Portuguese now made the signature but the programs are still in Portuguese, how do I switch to english

    http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html and
    http://helpx.adobe.com/x-productkb/policy-pricing/order-product-platform-language-swap.htm l

Maybe you are looking for

  • Editing PDF files in Adobe Acrobat X1 Standard

    I have just purchased adobe acrobat 11 standard after using adobe acrobat 7 for quite a while and I am having trouble finding certain features that I have used a lot in the past.  Hopefully someone can give me guidance as to if the features i need we

  • Dynamic X axis in line chart

    Hi All, I'm making a line chart in Webi in which different lines represent different products.  On the Y axis I have a measure (no problems here) and on the X axis I have months.  Naturally, different products enter the chart at different points alon

  • Need to export owb mapping documentation..How ?

    HI , I have 500 mappings and i want details document of these mappings. Is there any way By which i can export the mapping document and which contains source table, target table , and all transformation exists in it. It should be like a ETL specs. @w

  • Why, when I add or change the size of one cell, others cells of the page expand?

    Why, when I add or change the size of one cell, others cells of the page expand?

  • SAP Netweaver browser support for Windows 7 OS

    Hi, can anyone provide the SAP Netweaver Portal browser support matrix for Windows 7 OS? I could see SAP NetWeaver 7.00 Browser Support For End Users and Admin Functionality in case of Windows XP and Vista but not for Windows 7. Where can I find this