473,398 Members | 2,113 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,398 software developers and data experts.

Problems with Charset Encoding

Here's my workflow... I've built a CMS and users enter their content through
a WYSIWYG component which is a text area replacement. Then I save that data
to a flat file with an ASP extension (I've used FSO as well as Text Streaming
with Charset UTF-8).

When the page renders, I do a Server.Execute to present this file inside the
design. The problem is that I get all sorts of weird characters. especially
with some spaces, returns and especially on curly quotes. Also... at the top
of the file I get the BOM characters. My pages are also using UTF-8. Has
anyone else seen this? How can I fix it?

Thank you.

Phil Grimpo
Executive Director
Inspirmedia

Jul 25 '08 #1
4 2898
Gazing into my crystal ball I observed =?Utf-8?B?R3JpbXBz?=
<Gr****@discussions.microsoft.comwriting in
news:ED**********************************@microsof t.com:
Here's my workflow... I've built a CMS and users enter their content
through a WYSIWYG component which is a text area replacement. Then I
save that data to a flat file with an ASP extension (I've used FSO as
well as Text Streaming with Charset UTF-8).

When the page renders, I do a Server.Execute to present this file
inside the design. The problem is that I get all sorts of weird
characters. especially with some spaces, returns and especially on
curly quotes. Also... at the top of the file I get the BOM characters.
My pages are also using UTF-8. Has anyone else seen this? How can I
fix it?

Thank you.

Phil Grimpo
Executive Director
Inspirmedia

Do you have a URL? What is character set is the server sending?
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 26 '08 #2
"Grimps" <Gr****@discussions.microsoft.comwrote in message
news:ED**********************************@microsof t.com...
Here's my workflow... I've built a CMS and users enter their content
through
a WYSIWYG component which is a text area replacement. Then I save that
data
to a flat file with an ASP extension (I've used FSO as well as Text
Streaming
with Charset UTF-8).

When the page renders, I do a Server.Execute to present this file inside
the
design. The problem is that I get all sorts of weird characters.
especially
with some spaces, returns and especially on curly quotes. Also... at the
top
of the file I get the BOM characters. My pages are also using UTF-8. Has
anyone else seen this? How can I fix it?
Most likely you've failed to inform the browser that it is getting UTF-8.
You need:-

Response.CharSet = "UTF-8" at the top of your host page.
--
Anthony Jones - MVP ASP/ASP.NET
Jul 26 '08 #3
I tried adding that to the top of my host page and it didn't seem to
work. Take a look at http://www.lutherhaven.com/ Notice the left
side, the BOM ( ) at the top of the file and then the boxes
throughout the left side. Any other ideas? Is there something I'm missing?

Thanks!

-Phil
Anthony Jones wrote:
"Grimps" <Gr****@discussions.microsoft.comwrote in message
news:ED**********************************@microsof t.com...
>Here's my workflow... I've built a CMS and users enter their content
through
>a WYSIWYG component which is a text area replacement. Then I save that
data
>to a flat file with an ASP extension (I've used FSO as well as Text
Streaming
>with Charset UTF-8).

When the page renders, I do a Server.Execute to present this file inside
the
>design. The problem is that I get all sorts of weird characters.
especially
>with some spaces, returns and especially on curly quotes. Also... at the
top
>of the file I get the BOM characters. My pages are also using UTF-8. Has
anyone else seen this? How can I fix it?

Most likely you've failed to inform the browser that it is getting UTF-8.
You need:-

Response.CharSet = "UTF-8" at the top of your host page.

Jul 26 '08 #4
I've been seeing this more and more on the web. Anyone have any ideas
how to fix this?

Thanks!

-Phil
Phil Grimpo wrote:
I tried adding that to the top of my host page and it didn't seem to
work. Take a look at http://www.lutherhaven.com/ Notice the left
side, the BOM ( ) at the top of the file and then the boxes
throughout the left side. Any other ideas? Is there something I'm
missing?

Thanks!

-Phil
Anthony Jones wrote:
>"Grimps" <Gr****@discussions.microsoft.comwrote in message
news:ED**********************************@microso ft.com...
>>Here's my workflow... I've built a CMS and users enter their content
through
>>a WYSIWYG component which is a text area replacement. Then I save that
data
>>to a flat file with an ASP extension (I've used FSO as well as Text
Streaming
>>with Charset UTF-8).

When the page renders, I do a Server.Execute to present this file inside
the
>>design. The problem is that I get all sorts of weird characters.
especially
>>with some spaces, returns and especially on curly quotes. Also... at the
top
>>of the file I get the BOM characters. My pages are also using UTF-8. Has
anyone else seen this? How can I fix it?

Most likely you've failed to inform the browser that it is getting UTF-8.
You need:-

Response.CharSet = "UTF-8" at the top of your host page.

Aug 12 '08 #5

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

Similar topics

0
by: Wolfgang Uhr | last post by:
Hello I have a small Problem by using the mail() command from php. To surround the problem, I do the following: 1. I go to the server and send me a mail using the linux-mail-Command. In...
2
by: Iain | last post by:
Folks, I'm having a problem with charset encodings that I desparately need some help with. I don't even pretend to know the basics about charsets, so please forgive my ignorance. I am...
15
by: Rob Ratcliff | last post by:
I'm compiling the latest version of a CORBA ORB called MICO on a Cray X1. It makes heavy use of templates and namespaces. Up until the link step, the C++ source code compiled flawlessly. But, when...
18
by: gabriel | last post by:
greetings, I am currently working on a website where I need to print the Euro symbol and some "oe" like in "oeuvre". If I choose this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
19
by: Dales | last post by:
I have a custom control that builds what we refer to as "Formlets" around some content in a page. These are basically content "wrapper" sections that are tables that have a colored header and...
4
by: Michael Augustine | last post by:
I am having problems debugging an Web form app in .net. I am getting the following error message "Unable to Start Debugging on the Webserver. Catostrophic Failure." I think the problem has to...
3
by: Andreas | last post by:
Hi! I'm currently developing a DLL that makes use of C++ and .net (mixed) using Visual Studio 2003. Now, as I wanted to move to the new Visual Studio 2005, I converted this project into the...
20
by: Chris Withers | last post by:
Hi All, The following piece of code is giving me issues: from email.Charset import Charset,QP from email.MIMEText import MIMEText charset = Charset('utf-8') charset.body_encoding = QP msg =...
3
by: Giggi | last post by:
Hi! I need to pass some strings via an HTTP POST from page1 (in my app) to a page on another server. I stored my data in a NameValueCollection and then sent it using WebClient.UploadValues....
10
by: amygdala | last post by:
Hi all, Another problem that has been bugging me for a while now, but which I swept under the rug too long too now is a mail encoding problem at my (shared) webhost. The problem is that on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.