Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
1,192 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 3

Assisted Solution

by:johnsmith1962
johnsmith1962 earned 1800 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 200 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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 1800 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 1800 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

704 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