473,729 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Saving Classic ASP in UTF-8 Format

I have classic asp files (IIS6) that need to be saved in UTF-8 format. I
save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen the file
using Notepad and bring up the save-as dialog is defaults to UTF-8, which is
good. But after the file is modified and saved using Visual Interdev the
format switches back to ANSI format, which causes some international
characters to display as little boxes in the browser. I found one comment on
the internet about making sure the Meta tag with Charset=UTF-8 must be in the
file to instruct interdev to use the UTF-8 format when saving. This seems to
work on some .asp files but not all.

Any suggestions would be appreciated.

Thank You

--
Robert Hill
Aug 3 '07 #1
2 8070
=?Utf-8?B?Um9iZXJ0SGl sbEVEUw==?= wrote on 03 aug 2007 in
microsoft.publi c.inetserver.as p.general:
I have classic asp files (IIS6) that need to be saved in UTF-8 format.
I save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen
the file using Notepad and bring up the save-as dialog is defaults to
UTF-8, which is good. But after the file is modified and saved using
Visual Interdev the format switches back to ANSI format, which causes
some international characters to display as little boxes in the
browser.

Any suggestions would be appreciated.
Don't use Visual Interdev, I don't.
I found one comment on the internet about making sure the
Meta tag with Charset=UTF-8 must be in the file to instruct interdev
to use the UTF-8 format when saving. This seems to work on some .asp
files but not all.
I would not know about this.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 3 '07 #2
"RobertHill EDS" <rw****@nospam. nospamwrote in message
news:E6******** *************** ***********@mic rosoft.com...
I have classic asp files (IIS6) that need to be saved in UTF-8 format. I
save a file with Notepad using SAVE-AS & UTF-8 format. If I reopen the
file
using Notepad and bring up the save-as dialog is defaults to UTF-8, which
is
good. But after the file is modified and saved using Visual Interdev the
format switches back to ANSI format, which causes some international
characters to display as little boxes in the browser. I found one comment
on
the internet about making sure the Meta tag with Charset=UTF-8 must be in
the
file to instruct interdev to use the UTF-8 format when saving. This seems
to
work on some .asp files but not all.

Any suggestions would be appreciated.
You should also have:-

<%@ codepage=65001 %>

at the top of your page.
--
Anthony Jones - MVP ASP/ASP.NET
Aug 3 '07 #3

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

Similar topics

19
5678
by: Svennglenn | last post by:
I'm working on a program that is supposed to save different information to text files. Because the program is in swedish i have to use unicode text for Ňń÷ letters. When I run the following testscript I get an error message. # -*- coding: cp1252 -*-
7
4999
by: Philipp Lenssen | last post by:
How do I load and save a UTF-8 document in XML in ASP/VBS? Well, the loading* is not the problem actually -- the file is in UTF-8, and understood correctly -- but once saved, the UTF-8 is replaced by what seems to be iso-8859-1 (which Flash doesn't understand, but that's another problem). Any help greatly appreciated. * Something like this...
19
9328
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not recognise datasets and requires a recordset. Can the datatypes be converted? At the Classic ASP end or .NET end? Can SOAP toolkit provide the conversion, can any toolkit provide a conversion? ...
8
4363
by: Bill44077 | last post by:
Hi, Anyone have any insights on how to debug a memory leak with a classic asp application? Any thoughts would be appreciated. thanks! Bill
2
2855
by: MartyNg | last post by:
I am running a system that has both Classic ASP applications and a smattering of ASP.NET applications. We want to store passwords on a SQL Server table as their MD5 hashes. What is the safest way to get this hash value, and be able to verify it against user logins in both Classic ASP and ASP.NET? We have been working with the system.security.cryptopgraphy MD5 functions in .NET, and the functions here for Classic ASP...
2
7042
by: Peter2 | last post by:
Hi, I have a problem posting non-ASCII characters in FORM fields between classic ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net 2.0 and visual Studio 2005 installed, IIS, IE6 etc ... When an *.ASPX page receives the post, it drops non-ASCII characters, for example it drops character é from word Montréal. Specifying explicit encoding on ASP/ASPX page doesn't help. The encoding works without doing anything...
4
6723
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my code ?? thank you Pedro Leite From Portugal ------------------------------------
2
3412
plumpnation
by: plumpnation | last post by:
I have now got this bulky piece of script working, it reads the form correctly, which sends the request to the web service using SOAP. It conforms to their DTD and the web service then responds and sends an xml document back to the page. I would very much like the contents of the form to be entered into an sql database as it is sent to the web service, as their reply does not contain the full details filled into the form. Aside from the...
4
4509
by: =?Utf-8?B?Q2FybGluIEFuZGVyc29u?= | last post by:
I have a large classic ASP web application which needs to now support chinese character entry (I don't have to worry about the UI yet - the data entry people can read english). Other than changing the database fields over to "N" data types, do I need to do anything to the actual entry fields (input, textbox) on the various forms to be able to capture the information. Some users will be entering the information in english, while others...
2
4799
by: arnomarga | last post by:
I am trying to consuming a .NET web service from a standard (classic) ASP, but having not so much luck as I dont have much experience about SOAP. Here is the webservice url: http://test.webservices.superbreak.com/SoapEndpoint.asmx I have been advised that i need to use this through MSSOAP Toolkit or through soap envelope. Could someone advise about some coding pattern to access this service?
0
9428
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
9295
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...
1
9222
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9163
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...
0
6028
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
4537
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
4799
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3246
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
2173
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.