473,806 Members | 2,874 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 responseEncodin g to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncodin g 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 3038
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_Beg inRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hot mail.com> schreef in bericht
news:un******** ******@TK2MSFTN GP14.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 responseEncodin g to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncodin g 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 , responseEncodin g 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 responeseEncodi ng could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmai l.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_Beg inRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hot mail.com> schreef in bericht
news:un******** ******@TK2MSFTN GP14.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 responseEncodin g to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncodin g 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********@hot mail.com> schreef in bericht
news:Or******** ******@TK2MSFTN GP15.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 , responseEncodin g 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 responeseEncodi ng could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmai l.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_Beg inRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hot mail.com> schreef in bericht
news:un******** ******@TK2MSFTN GP14.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 responseEncodin g to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncodin g 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 responseEncodin g in the web-config-file.

/Henke

"Henke" <he********@hot mail.com> skrev i meddelandet
news:Or******** ******@TK2MSFTN GP15.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 , responseEncodin g 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 responeseEncodi ng could be set in the Page directive. How
should this be done in the best way?

/Henke

"Arjen" <bo*****@hotmai l.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_Beg inRequest.
Check autoculture:
http://beta.asp.net/QUICKSTART/aspne...px#autoculture

Hope this helps,
Arjen

"Henke" <he********@hot mail.com> schreef in bericht
news:un******** ******@TK2MSFTN GP14.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 responseEncodin g to windows-1251. Is this correct?

2. Now I set the requestEncoding and responseEncodin g 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
599
by: JezB | last post by:
How do I programatically set the culture at session level ?
1
1472
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) Both have IIS installed and the same version of our application. We have a test application that allows us to check the cultureInfo settings and the server that does not work has it set to en-us
5
5051
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 CurrentUICulture to what's specified in the querystring. Since I want to allow UICulture auto detecting, I add UICulture = "auto" to page directive on each page.
1
1375
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 solution with two resx files in the App_GlobalResources folder: - ffTest.en.resx - ffTest.resx
1
4560
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 where I hard code the CurrentUICulture is in the form's constructor and is like: Thread.CurrentThread.CurrentUICulture = new CultureInfo("pt-BR"); When this line is present, the form displays in Portuguese.
9
3920
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
6071
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 able to use it in the master page please help me thank you
1
1793
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 Application_onstart. All other configuration is stored in a database for these sites (20+), and I want to be able to put the UIculture in there as well.
4
2109
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 english (US) it is possible to change the dataset settings, because these are also en-US. But if I choose LOC en-GB, System.Threading.Thread.CurrentThread.CurrentUICulture stay in en-US and it is not possible to set culture changes (NsNSymbol) on...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10620
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10369
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10110
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5682
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4329
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.