DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: DB Character set

Threaded View

  1. #6
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Originally posted by kris123
    US ASCII
    You can not store such HTML special chars in this characterset.

    PS

    Code:
    WW04_DBA> select * from nls_database_parameters where  PARAMETER = upper('nls_characterset');
    
    PARAMETER                      VALUE
    ------------------------------ ----------------------------------------
    NLS_CHARACTERSET               US7ASCII
    
    WW04_DBA> select chr(241) from dual;
    
    C
    -
    q
    
    WW04_DBA> select chr(177) from dual;
    
    C
    -
    1
    Since this is 7 bit Characterset, max value in binary would be (1111111)=127, when ascii value is 128, it will effectively be 0 so all the literals starting from 128 to 255 will be same as 0 to 127.

    Now just see how 8 bit character set will work.

    Code:
    TEST:ABHAY> select * from nls_database_parameters where  PARAMETER = upper('nls_characterset');
    
    PARAMETER                      VALUE
    ------------------------------ ----------------------------------------
    NLS_CHARACTERSET               WE8MSWIN1252
    
    TEST:ABHAY> select chr(241) from dual;
    
    C
    -
    ¤
    
    TEST:ABHAY> select chr(177) from dual;
    
    C
    -
    ñ
    Hope this helps you.

    Abhay.
    Last edited by abhaysk; 07-18-2003 at 04:47 AM.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width