473,659 Members | 2,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

German Umlaute (Resources)

In order to have a mutli-lingual page, I load all .Text, .ToolTip etc from a
resource, if the user does not work with the default-language, like this:

Thread.CurrentT hread.CurrentCu lture = new CultureInfo(sel Culture);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(sel Culture);
// overwrite Text items
lblMntlogin.Tex t = rm.GetString("M ntlogin.Text");
tbxMntlogin.Too lTip = rm.GetString("M ntlogin.ToolTip ");
etc..

If I have german umlaute (ä,ö,ü etc) in the Resources Textfile, I found out
that I have to represent them in ansi (&228;,&246;,&2 52;). This works fine
for the Text Property, but it DOES NOT WORK for the ToolTip !
Does anybody know the rules behind this ?
Thanks
PS: obviousely the best solution would be to just use umlaute as is in the
textfile, without having to use the ansi representation.

Nov 18 '05 #1
1 1718
&228; is for HTML, not for Javascript.

Use UTF-8 instead: look under Advanced Save Options and chose UTF-8 with
signature (Code page 65001). Save your file; close VS.NET and reopen it to
make sure that everything is now OK.

Do the same with your HTML page and always use UTF-8 as the encoding of your
page. Don't forget that even if you set the UTF-8 as the encoding in the
property of your HTML page, the file itself must be also saved on the
hard-drive with UTF-8 encoding.

S. L.

"Carlo Marchesoni" <Ca************ *@discussions.m icrosoft.com> wrote in
message news:EB******** *************** ***********@mic rosoft.com...
In order to have a mutli-lingual page, I load all .Text, .ToolTip etc from
a
resource, if the user does not work with the default-language, like this:

Thread.CurrentT hread.CurrentCu lture = new CultureInfo(sel Culture);
Thread.CurrentT hread.CurrentUI Culture = new CultureInfo(sel Culture);
// overwrite Text items
lblMntlogin.Tex t = rm.GetString("M ntlogin.Text");
tbxMntlogin.Too lTip = rm.GetString("M ntlogin.ToolTip ");
etc..

If I have german umlaute (ä,ö,ü etc) in the Resources Textfile, I found
out
that I have to represent them in ansi (&228;,&246;,&2 52;). This works fine
for the Text Property, but it DOES NOT WORK for the ToolTip !
Does anybody know the rules behind this ?
Thanks
PS: obviousely the best solution would be to just use umlaute as is in the
textfile, without having to use the ansi representation.

Nov 18 '05 #2

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

Similar topics

13
8520
by: Robert Zierhofer | last post by:
Hi all, I currently face a problem with htmlentities and german "umlaute". After moving my scripts to a new box (from Linux to FreeBSD) I had to see that htmlentities is not working anymore. The BSD Server (FreeBSD 5.1.2) runs PHP 4.3.9 and Apache 2 as well as the Linux Server does/did too. I also tried defining the charset with ISO 8859-1 as 3rd parameter in htmlentities but without a result.
1
4753
by: Jeff | last post by:
Having a problem displaying both german and chinese characters from a UTF-8 database on the same *.jsp page. Can make Chinese characters appear correctly by including the following lines: <%@ page pageEncoding="UTF-8" %> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1
1238
by: Eric | last post by:
Hi, Normally I'm developing evertime with the english versions of Win, VS.NET, ..NET etc. But know I have a german Win XP SP1 with IIS 5.1 installed. Anyway I would like to develop with english versions. Because of that I installed the english version of VS.NET.
1
1369
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
0
2096
by: Markus Wollny | last post by:
Hi! Sorry to bother you, but I just don't know how to get tsearch2 configured correctly for my setup. I've got a 7.4.3 database-cluster initdb'ed with de_DE@euro as locale, the database is with Unicode encoding. I made and installed contrib/tsearch2 after installing the dump/reload-patch http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/regprocedure_7.4.patch.gz as advised by the docs. So far everything is looking good, I have...
0
1382
by: news.online.de | last post by:
Hello everybody, probably it's a FAQ but I didn't find anything so far concerning my problem, so I am asking here :-) I am facing the following problem: - I have developed a webservice client to an axis service on a german windows system with a german VS.net 2002 - If I have german special characters (Umlaute äöü...) in a string variable everything works fine on the german system, but if a install the client on an english system the...
4
34149
by: George | last post by:
Hi, I am puzzled by the following and seeking some assistance to help me understand what happened. I have very limited encoding knowledge. Our SAP system writes out a text file which includes German characters. 1. When I use StreamReader(System.String filepath) without specifying an encoding method, the German characters such as Ä are lost when I do a ReadLine()
8
8842
by: DierkErdmann | last post by:
Hi ! I know that this topic has been discussed in the past, but I could not find a working solution for my problem: sorting (lists of) strings containing special characters like "ä", "ü",... (german umlaute). Consider the following list: l = For sorting the letter "Ä" is supposed to be treated like "Ae", therefore sorting this list should yield
12
8036
by: Uwe Braunholz | last post by:
Hello, working on a asp.net Website brought me to a strange problem. I want to enable my users to pass a search string via the query string of an url. It works if the user calls the URL like "default.aspx?search=mystring" But as soon as a German umlaut is in the query string it does not handle the char correctly (like "default.aspx?search=müstring" will be
0
8851
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
8630
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
6181
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
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
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
4342
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2759
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
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
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.