Solved

Why I can't see a middle dash symbol while inserting chr(196) in a Table?  Why I see A with umlaut?

Posted on 2008-10-06
7
1,164 Views
Last Modified: 2013-12-07
Hello, I've noted that with the following command:

SQL> select chr(196) from DUAL;
Ä

... I obtain the A with umlaut, instead of middle dash:

How can I fix this?

I need to visualize the middle dash symbol in a graphic tool that uses Oracle DataBase.


SQL> select chr(196) from DUAL;
Ä
 
SQL>

Open in new window

0
Comment
Question by:CRISTIANO_CORRADI
  • 3
  • 3
7 Comments
 
LVL 3

Assisted Solution

by:johnsmith1962
johnsmith1962 earned 450 total points
ID: 22650449
Try chr(45) for dash.  196 is extended ascii, and Oracle doesnt use that.
0
 
LVL 2

Assisted Solution

by:kazman300
kazman300 earned 50 total points
ID: 22650478
Try
select chr(45) from dual

Does this give you the correct symbol?
A list of character values are to be found at
http://www.asciitable.com/
HTH
0
 

Author Comment

by:CRISTIANO_CORRADI
ID: 22651216
I didn't know that Oracle doen't support EXTENDED ASCII.

Thank you.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:CRISTIANO_CORRADI
ID: 22651235
chr(45) is useless because it lets a microspace between one dash and the following.

chr(196) doesn't leave microspaces between one chr(196) and the following chr(196):
0
 
LVL 3

Assisted Solution

by:johnsmith1962
johnsmith1962 earned 450 total points
ID: 22651369
What I meant was Oracle doesnt use that particular version of extended ascii.  Extended ASCII ias not standardized.  Standard ASCII is only 128 characters.

If there is a microspace, it is probably editor issue, not an Oracle issue, however you might try just running a loop from 0 to 256  and see what comes out.
0
 
LVL 3

Accepted Solution

by:
johnsmith1962 earned 450 total points
ID: 22651403
Here is the code by the way:

declare
  outchar char(1);
begin
dbms_output.enable(100000);
  for loopvar in 00..256 loop
    dbms_output.put_line(to_char(loopvar)||'  '||chr(loopvar));
  end loop;
end;
0
 

Author Closing Comment

by:CRISTIANO_CORRADI
ID: 31503416
Thank you very much for your kind help.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Shredding xml into an oracle 11g Database 2 45
Use of Exception to end a Loop 3 33
Documenting Data flow 4 39
Oracle - SQL Query with Function 3 36
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question