473,809 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using local resource file.

Hi,

I am building an application that will utilize the local resource
file. Right now the application is separated into two part, the header
and the content. One of the line at the top of the header is "<meta
http-equiv="Content-Type" content="text/html; charset=euc-kr">" When I
generate a local resource file what I see at the top of the resource
file is "<?xml version="1.0" encoding="utf-8"?>". Now this will create
a problem when I load the application because they are encoded
differently. However, when I tried to change the encoding at the top
of the local resource file into euc-kr the page still loaded
incorrectly. I have also tried to generate a blank resource file,
change the encoding at the top, and then copy the Korean text
afterward, assuming that the order is important. When I view the page
in "Unicode" the text from the resource file is correct and when I
change the encoding to "euc-kr" the header text is correct. Does
anyone know how to fix this? Thanks in advance.

May 14 '07 #1
2 2281
On May 14, 12:00 pm, Nesster13 <nesste...@gmai l.comwrote:
Hi,

I am building an application that will utilize the local resource
file. Right now the application is separated into two part, the header
and the content. One of the line at the top of the header is "<meta
http-equiv="Content-Type" content="text/html; charset=euc-kr">" When I
generate a local resource file what I see at the top of the resource
file is "<?xml version="1.0" encoding="utf-8"?>". Now this will create
a problem when I load the application because they are encoded
differently. However, when I tried to change the encoding at the top
of the local resource file into euc-kr the page still loaded
incorrectly. I have also tried to generate a blank resource file,
change the encoding at the top, and then copy the Korean text
afterward, assuming that the order is important. When I view the page
in "Unicode" the text from the resource file is correct and when I
change the encoding to "euc-kr" the header text is correct. Does
anyone know how to fix this? Thanks in advance.
This is what I found out so far. If I view the header by itself, it
will load the right language "euc-kr". However when I load the
application with the header inside, it will load Unicode utf-8 on page
load. I have set the culture as ko in the global.asax file but this
does not seem to help. It seems like the setting in the global cancel
out the setting in the header. I cannot modify the header because
there are many other application that uses this same header. Does
anyone know of a way to go around this? Thanks

May 15 '07 #2
On May 14, 6:42 pm, Nesster13 <nesste...@gmai l.comwrote:
On May 14, 12:00 pm, Nesster13 <nesste...@gmai l.comwrote:
Hi,
I am building an application that will utilize the local resource
file. Right now the application is separated into two part, the header
and the content. One of the line at the top of the header is "<meta
http-equiv="Content-Type" content="text/html; charset=euc-kr">" When I
generate a local resource file what I see at the top of the resource
file is "<?xml version="1.0" encoding="utf-8"?>". Now this will create
a problem when I load the application because they are encoded
differently. However, when I tried to change the encoding at the top
of the local resource file into euc-kr the page still loaded
incorrectly. I have also tried to generate a blank resource file,
change the encoding at the top, and then copy the Korean text
afterward, assuming that the order is important. When I view the page
in "Unicode" the text from the resource file is correct and when I
change the encoding to "euc-kr" the header text is correct. Does
anyone know how to fix this? Thanks in advance.

This is what I found out so far. If I view the header by itself, it
will load the right language "euc-kr". However when I load the
application with the header inside, it will load Unicode utf-8 on page
load. I have set the culture as ko in the global.asax file but this
does not seem to help. It seems like the setting in the global cancel
out the setting in the header. I cannot modify the header because
there are many other application that uses this same header. Does
anyone know of a way to go around this? Thanks
I was able to find a solution for this problem.

May 16 '07 #3

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

Similar topics

1
1570
by: dzieciou | last post by:
I've used JENA and got the following result in result of query to RDF file: <j.0:ResultSet> <j.0:solution rdf:parseType="Resource"> <j.0:binding rdf:parseType="Resource"> <j.0:value>John Smith</j.0:value> <j.0:variable>fname</j.0:variable> </j.0:binding> <j.0:binding rdf:parseType="Resource">
4
2875
by: Peter | last post by:
Hi! I'm developing components (webparts) for a sharepoint site and are currently having some problems with the resource manager. The site supports two languages (English and Swedish) and when the files are published everything works fine. However, after a few days, suddenly all texts are displayed in English only! Below is the code I'm using to read resource files. The project has two resource files: resources.resx and...
1
2512
by: Peter Strøiman | last post by:
Hi. I have a web project, that is intended to be installed multiple times as different product with different names. All strings in the web are placed in local resource files. In some of the strings, we would like to put the name of the site, different contact e-mail etc. Would it be possible to make these strings as global resources and then reference then dynamically include that from a local resource? Something like
1
2660
by: ewosch | last post by:
Hi, I've a problem with local files: Links to most of the connected shares work: <a href="file:///k:/myportrait.gif">my portrait</a> but links to the c-drive do not work, without any message: <a href="file:///c:/myportrait.gif">my portrait</a>
3
5397
by: Laith Zraikat | last post by:
I need to set the page title for a content page in a master page, and do that using local reources so that I can have my page title in different languages. I can do that easily using global resources by explicitly setting the value of the Page, but I want to use local resources as a standard. Thank you.
1
11150
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes, Reservations, Exclusions, Options and so forth. Since the dll...
0
12361
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes, Reservations, Exclusions, Options and so forth. Since the dll that is used was written several years ago by Microsoft, you cannot manage things on the DNS tab when looking at a reservation and few things such as that however it gives you main things you...
2
2012
by: Daniel | last post by:
I am just investigating on .resx and .resource files using asp.net. I am attempting to develop a webpage in Dreamweaver on an asp.net webserver. As i read around the net, using a .resource file for all my text on my website seems like the best way to go. I would just have a fr.resource file for each language. This seems like it would work pretty well. I have been able to create the .resource files but i do not know how to read them to...
2
3528
by: Andrus | last post by:
I have resource files in different languages created by VCS 2005 Express. I want to use those files to translate reports at runtime. I have text to be translated as string. I think I need to search resource file for this string id. After that I need to return translated string from other resouce file ? Is this best idea? Where to find sample code which implements this ?
0
9601
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10635
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
10115
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
7653
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
6881
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
5550
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
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.