473,403 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

facing the problem in displaying the special characters

Hi,

I am facing the problem in displaying the special characters like
( ` ) GRAVE ACCENT in C# windows Application.

I am using oracle as back end.
In oracle database table the string contain the above character is stored as
TONY ROBINSON`S CRIME AND PUNISHMENT in places in single code ( ‘ ) .

Oracle database has following settings in nls_database_parameters

1 NLS_NCHAR_CHARACTERSET AL16UTF16
2 NLS_LANGUAGE ENGLISH
3 NLS_TERRITORY UNITED KINGDOM
4 NLS_CURRENCY #
5 NLS_ISO_CURRENCY UNITED KINGDOM
6 NLS_NUMERIC_CHARACTERS .,
7 NLS_CHARACTERSET WE8ISO8859P1
8 NLS_CALENDAR GREGORIAN
9 NLS_DATE_FORMAT DD-MON-RR
10 NLS_DATE_LANGUAGE ENGLISH
11 NLS_SORT BINARY
12 NLS_TIME_FORMAT HH24.MI.SSXFF
13 NLS_TIMESTAMP_FORMAT DD-MON-RR HH24.MI.SSXFF
14 NLS_TIME_TZ_FORMAT HH24.MI.SSXFF TZR
15 NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH24.MI.SSXFF TZR
16 NLS_DUAL_CURRENCY ?
17 NLS_COMP BINARY
18 NLS_LENGTH_SEMANTICS BYTE
19 NLS_NCHAR_CONV_EXCP FALSE
20 NLS_RDBMS_VERSION 10.1.0.5.0

On client PC has following
• In Regedit "HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\"
• Under key called - KEY_OraClient10g_homeX where X is a number.
• Value of "NLS_LANG" = "ENGLISH_UNITED KINGDOM.WE8ISO8859P1"
But still the c# windows application displays the text properly. The special character ( ` ) is displayed as square brackets

Can anyone please help & let me know the solution

Thanks
Rakesh
Aug 6 '08 #1
3 1753
kenobewan
4,871 Expert 4TB
Maybe show us how you are writing this sentence to the db?
Aug 6 '08 #2
r035198x
13,262 8TB
Maybe show us how you are writing this sentence to the db?
Or rather the code that's displaying the values since the OP seems to suggest that the value is being stored correctly in the database.
Aug 6 '08 #3
Or rather the code that's displaying the values since the OP seems to suggest that the value is being stored correctly in the database.
Thanks for your reply

Value in DB
------------------
TONY ROBINSON`S CRIME AND PUNISHMENT

Code which gets the text from
----------------------------------------------
internal static string sql = @"select prottl.prottl_title_tex from prottl join ctr on prottl.ctr_key =ctr.ctr_key where ctr.ctr_contrt_num=:P_CONTRACT_NO";



public string getcontractTitle(Int64 contractNo) //43917
{

string contractTitle = "";
try
{


OracleCommand qgetTitle = new OracleCommand(sql, _oraConnection);

qgetTitle.CommandType = CommandType.Text;
qgetTitle.Parameters.Add(new OracleParameter("P_CONTRACT_NO", OracleType.Number)).Value = contractNo;
OracleDataReader reader = qgetTitle.ExecuteReader();

while (reader.Read())
{

contractTitle = reader["prottl_title_tex"].ToString();

}

}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
return (contractTitle);
}
Aug 6 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Mosher | last post by:
Hi all, I have an issue with php and/or mysql. I have a php form that writes "items" to a mysql database, including a description of the item. On the mysql server, "magic_quotes_gpc" is ON. I...
2
by: John Smith | last post by:
I have a table that contains a chunk of text, and the text commonly has special characters, such as "&" or "–". To edit this text, there is a page where the text is dumped into a textarea....
12
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" &...
4
by: Kivanc Toker | last post by:
Hi, I've got a problem with displaying texts with turkish characters. There is a website administration system, which is developed using ASP (VBScript) and ADO. This system is being used for...
2
by: David Scemama | last post by:
Hi, I'm looking for a way to display semi graphic characters in a multi line text control or in a rich text control. I've tried with all the characters of the extended ASCII table (code page...
5
by: Sakharam Phapale | last post by:
Hi All, I am using an API function, which takes file path as an input. When file path contains special characters (@,#,$,%,&,^, etc), API function gives an error as "Unable to open input file"....
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
7
by: jitu78 | last post by:
Hi, I am displaying dynamic content in my flash. Dynamic data is coming from XML and in flash file, html entities are not showing right, strange characters are displaying there. Here is link,...
2
by: chike_oji | last post by:
Hello, I am displaying data retrieved from a database as a httpresponse in a webform. I noticed that some characters such as the comma (,), display as special characters in the web browser...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.