473,396 Members | 1,849 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,396 software developers and data experts.

Where to set uiCulture, culture ...

Hi
I'm building an globalized application (english, swedish and russian
languages) and have a few questions:
1. In order to see the russian characters correct I have to set the
requestEncoding and responseEncoding to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncoding in the web.config
file, but since I only have one web.config it only works for either english
and swedish (utf-8 encoding) or just russian (windows-1251 encoding). So I
guess I'm doing something wrong here, but what?

3. I could set the culture an uiCulture to the Thread when I click each
language link, which looks quite nice, but is this the way to do it?

I really would appreciate some help...
/Henke
Nov 19 '05 #1
4 3015
Hi,

Answer 1:
Yes, http://en.wikipedia.org/wiki/Windows-1251

Answer 2:
Correct, you can add this inside the web.config or in each page.
Chech this:
http://beta.asp.net/QUICKSTART/aspne...spx#ielanguage

Answer 3:
You can do this inside the global.asax file.
Inside the method Application_BeginRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hotmail.com> schreef in bericht
news:un**************@TK2MSFTNGP14.phx.gbl...
Hi
I'm building an globalized application (english, swedish and russian
languages) and have a few questions:
1. In order to see the russian characters correct I have to set the
requestEncoding and responseEncoding to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncoding in the web.config
file, but since I only have one web.config it only works for either
english and swedish (utf-8 encoding) or just russian (windows-1251
encoding). So I guess I'm doing something wrong here, but what?

3. I could set the culture an uiCulture to the Thread when I click each
language link, which looks quite nice, but is this the way to do it?

I really would appreciate some help...
/Henke

Nov 19 '05 #2
Thanks for your answers. Though I still have some problems.
1. Should I use any specific font?

2. When I try to run my application in the russian language I have to set
the requestEncoding, responseEncoding and fileEncoding in the web.config
file, to have the text displayed correct. Since I have different pages for
every language I would like to set this properties on a page level. In ASP
..NET 1.1 only responeseEncoding could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmail.com> skrev i meddelandet
news:dd**********@news4.zwoll1.ov.home.nl...
Hi,

Answer 1:
Yes, http://en.wikipedia.org/wiki/Windows-1251

Answer 2:
Correct, you can add this inside the web.config or in each page.
Chech this:
http://beta.asp.net/QUICKSTART/aspne...spx#ielanguage

Answer 3:
You can do this inside the global.asax file.
Inside the method Application_BeginRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hotmail.com> schreef in bericht
news:un**************@TK2MSFTNGP14.phx.gbl...
Hi
I'm building an globalized application (english, swedish and russian
languages) and have a few questions:
1. In order to see the russian characters correct I have to set the
requestEncoding and responseEncoding to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncoding in the web.config
file, but since I only have one web.config it only works for either
english and swedish (utf-8 encoding) or just russian (windows-1251
encoding). So I guess I'm doing something wrong here, but what?

3. I could set the culture an uiCulture to the Thread when I click each
language link, which looks quite nice, but is this the way to do it?

I really would appreciate some help...
/Henke


Nov 19 '05 #3
I don't know about the font.

You can also use resource files.
Each resource file will be a language file.
Then you only need one webpage.
Inside the global.asax file you set the language, culture and encoding type.
The webpage automaticly reads the correct resource file.

Hope this helps,
Arjen

"Henke" <he********@hotmail.com> schreef in bericht
news:Or**************@TK2MSFTNGP15.phx.gbl...
Thanks for your answers. Though I still have some problems.
1. Should I use any specific font?

2. When I try to run my application in the russian language I have to set
the requestEncoding, responseEncoding and fileEncoding in the web.config
file, to have the text displayed correct. Since I have different pages for
every language I would like to set this properties on a page level. In ASP
.NET 1.1 only responeseEncoding could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmail.com> skrev i meddelandet
news:dd**********@news4.zwoll1.ov.home.nl...
Hi,

Answer 1:
Yes, http://en.wikipedia.org/wiki/Windows-1251

Answer 2:
Correct, you can add this inside the web.config or in each page.
Chech this:
http://beta.asp.net/QUICKSTART/aspne...spx#ielanguage

Answer 3:
You can do this inside the global.asax file.
Inside the method Application_BeginRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hotmail.com> schreef in bericht
news:un**************@TK2MSFTNGP14.phx.gbl...
Hi
I'm building an globalized application (english, swedish and russian
languages) and have a few questions:
1. In order to see the russian characters correct I have to set the
requestEncoding and responseEncoding to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncoding in the web.config
file, but since I only have one web.config it only works for either
english and swedish (utf-8 encoding) or just russian (windows-1251
encoding). So I guess I'm doing something wrong here, but what?

3. I could set the culture an uiCulture to the Thread when I click each
language link, which looks quite nice, but is this the way to do it?

I really would appreciate some help...
/Henke



Nov 19 '05 #4
Thanks Arjen, for your answers.
I did it in an other way. Every russian page I save in signed unicode
(UTF-8) format, both resx-files and cs-files. In that way all my charcters
were saved in a correct way, and I didn't had to change the requestEncoding
and responseEncoding in the web-config-file.

/Henke

"Henke" <he********@hotmail.com> skrev i meddelandet
news:Or**************@TK2MSFTNGP15.phx.gbl...
Thanks for your answers. Though I still have some problems.
1. Should I use any specific font?

2. When I try to run my application in the russian language I have to set
the requestEncoding, responseEncoding and fileEncoding in the web.config
file, to have the text displayed correct. Since I have different pages for
every language I would like to set this properties on a page level. In ASP
.NET 1.1 only responeseEncoding could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmail.com> skrev i meddelandet
news:dd**********@news4.zwoll1.ov.home.nl...
Hi,

Answer 1:
Yes, http://en.wikipedia.org/wiki/Windows-1251

Answer 2:
Correct, you can add this inside the web.config or in each page.
Chech this:
http://beta.asp.net/QUICKSTART/aspne...spx#ielanguage

Answer 3:
You can do this inside the global.asax file.
Inside the method Application_BeginRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hotmail.com> schreef in bericht
news:un**************@TK2MSFTNGP14.phx.gbl...
Hi
I'm building an globalized application (english, swedish and russian
languages) and have a few questions:
1. In order to see the russian characters correct I have to set the
requestEncoding and responseEncoding to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncoding in the web.config
file, but since I only have one web.config it only works for either
english and swedish (utf-8 encoding) or just russian (windows-1251
encoding). So I guess I'm doing something wrong here, but what?

3. I could set the culture an uiCulture to the Thread when I click each
language link, which looks quite nice, but is this the way to do it?

I really would appreciate some help...
/Henke



Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JezB | last post by:
How do I programatically set the culture at session level ?
1
by: Cammie Watson | last post by:
We have two web servers that seem identical, regional settings etc. Although 1 does not run our app correctly, causing a "CAST to date" error to return from the SQL server (which both access) ...
5
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the...
1
by: Roland Müller | last post by:
Hello, we have converted our project to framework 2.0 but we have still some problems, one of it with setting the UICulture for a aspx-site. Example: there is a simple aspx test site in a...
1
by: Ken | last post by:
Hello, I am trying to learn how to build a localizable windows application and am having trouble getting alternate languages to display when if stop hardcoding the culture settings. The line...
9
by: Edge | last post by:
hi, I am saving the user selected culture in a session variable so I can apply it back to all pages when refreshed and then load the proper .resx values. For that I am using global.asax
4
by: fabuwardeh | last post by:
Hi Everybody, how i can localize the master page in asp.net 2 is there are away to set the master page culture in the code i have already use InitializeCulture in my base page class but i am not...
1
by: Klaus Jensen | last post by:
Hi This question relates to ASP.Net 1.1 - NOT 2.0 I want to set a site-wide UIculture from code. I know it can be set in web.config, but can it be set in code? For instance in...
4
by: schaf | last post by:
Hi ! I have determined, that System.Threading.Thread.CurrentThread.CurrentUICulture is en-US if I choose english as language for menus and dialogues in a MUI WindowsXP. If i set the LOC flag on...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.