Connecting Tech Pros Worldwide Help | Site Map

Problems with Charset Encoding

=?Utf-8?B?R3JpbXBz?=
Guest
 
Posts: n/a
#1: Jul 25 '08
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

Adrienne Boswell
Guest
 
Posts: n/a
#2: Jul 26 '08

re: Problems with Charset Encoding


Gazing into my crystal ball I observed =?Utf-8?B?R3JpbXBz?=
<Grimps@discussions.microsoft.comwriting in
news:ED5FD271-940A-4886-9B05-9BE453FCE155@microsoft.com:
Quote:
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

Anthony Jones
Guest
 
Posts: n/a
#3: Jul 26 '08

re: Problems with Charset Encoding


"Grimps" <Grimps@discussions.microsoft.comwrote in message
news:ED5FD271-940A-4886-9B05-9BE453FCE155@microsoft.com...
Quote:
Here's my workflow... I've built a CMS and users enter their content
through
Quote:
a WYSIWYG component which is a text area replacement. Then I save that
data
Quote:
to a flat file with an ASP extension (I've used FSO as well as Text
Streaming
Quote:
with Charset UTF-8).
>
When the page renders, I do a Server.Execute to present this file inside
the
Quote:
design. The problem is that I get all sorts of weird characters.
especially
Quote:
with some spaces, returns and especially on curly quotes. Also... at the
top
Quote:
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


Phil Grimpo
Guest
 
Posts: n/a
#4: Jul 26 '08

re: Problems with Charset Encoding


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:
Quote:
"Grimps" <Grimps@discussions.microsoft.comwrote in message
news:ED5FD271-940A-4886-9B05-9BE453FCE155@microsoft.com...
Quote:
>Here's my workflow... I've built a CMS and users enter their content
through
Quote:
>a WYSIWYG component which is a text area replacement. Then I save that
data
Quote:
>to a flat file with an ASP extension (I've used FSO as well as Text
Streaming
Quote:
>with Charset UTF-8).
>>
>When the page renders, I do a Server.Execute to present this file inside
the
Quote:
>design. The problem is that I get all sorts of weird characters.
especially
Quote:
>with some spaces, returns and especially on curly quotes. Also... at the
top
Quote:
>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.
>
>
Phil Grimpo
Guest
 
Posts: n/a
#5: Aug 12 '08

re: Problems with Charset Encoding


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

Thanks!

-Phil


Phil Grimpo wrote:
Quote:
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:
Quote:
>"Grimps" <Grimps@discussions.microsoft.comwrote in message
>news:ED5FD271-940A-4886-9B05-9BE453FCE155@microsoft.com...
Quote:
>>Here's my workflow... I've built a CMS and users enter their content
>through
Quote:
>>a WYSIWYG component which is a text area replacement. Then I save that
>data
Quote:
>>to a flat file with an ASP extension (I've used FSO as well as Text
>Streaming
Quote:
>>with Charset UTF-8).
>>>
>>When the page renders, I do a Server.Execute to present this file inside
>the
Quote:
>>design. The problem is that I get all sorts of weird characters.
>especially
Quote:
>>with some spaces, returns and especially on curly quotes. Also... at the
>top
Quote:
>>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.
>>
>>
Closed Thread