Unix Technical Forum

language-font problem

This is a discussion on language-font problem within the SQL Server forums, part of the Microsoft SQL Server category; --> In my application I need to make the report in different languages. I made a table for report parameters, ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 07:13 AM
Elvira Zeinalova
 
Posts: n/a
Default language-font problem

In my application I need to make the report in different languages.
I made a table for report parameters, like:

create myTable (
language_id int not null,
parameter char(50) null,
constraint PK_lang_ID PRIMARY KEY (language_id))

and then tried:
insert into myTable values(1, 'Bank info') - for English
insert into myTable values(2, '????') - for Chinese.

it worked OK ( I have installed "Chinese" language in server)
but when run:
select * from myTable
then I get:
1 Bank info
2 ?????

And in Application it is also coming like: "????"
What is wrong ? Do I have to do some additional installation staff for
Chinese in SQL Server ?


Any idea will be helpful and greatly appreciated


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 07:13 AM
Elvira Zeinalova
 
Posts: n/a
Default Re: language-font problem

I see that the chinese letters are turned to "????" in my previous mail
also.
When I "insert" for Chinese - I write the Chinese letters in "insert into
......" statement and it is OK.
The problem is I cannot get the same font back when "select"

Please help

"Elvira Zeinalova" <elvira.zeinalova@sff.no> skrev i melding
news:VX%Qd.9095$Sl3.276248@news4.e.nsc.no...
> In my application I need to make the report in different languages.
> I made a table for report parameters, like:
>
> create myTable (
> language_id int not null,
> parameter char(50) null,
> constraint PK_lang_ID PRIMARY KEY (language_id))
>
> and then tried:
> insert into myTable values(1, 'Bank info') - for English
> insert into myTable values(2, '????') - for Chinese.
>
> it worked OK ( I have installed "Chinese" language in server)
> but when run:
> select * from myTable
> then I get:
> 1 Bank info
> 2 ?????
>
> And in Application it is also coming like: "????"
> What is wrong ? Do I have to do some additional installation staff for
> Chinese in SQL Server ?
>
>
> Any idea will be helpful and greatly appreciated
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 07:13 AM
Erland Sommarskog
 
Posts: n/a
Default Re: language-font problem

Elvira Zeinalova (elvira.zeinalova@sff.no) writes:
> In my application I need to make the report in different languages.
> I made a table for report parameters, like:
>
> create myTable (
> language_id int not null,
> parameter char(50) null,
> constraint PK_lang_ID PRIMARY KEY (language_id))
>
> and then tried:
> insert into myTable values(1, 'Bank info') - for English
> insert into myTable values(2, '????') - for Chinese.
>
> it worked OK ( I have installed "Chinese" language in server)
> but when run:
> select * from myTable
> then I get:
> 1 Bank info
> 2 ?????
>
> And in Application it is also coming like: "????"
> What is wrong ? Do I have to do some additional installation staff for
> Chinese in SQL Server ?


You should probably specify parameter to be nchar(50) and the character
literal as N'????', and thus work with Unicode.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com