Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Problems with Charset Encoding

Question posted by: =?Utf-8?B?R3JpbXBz?= (Guest) on July 25th, 2008 06:15 PM
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's Avatar
Adrienne Boswell
Guest
n/a Posts
July 26th, 2008
02:15 AM
#2

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's Avatar
Anthony Jones
Guest
n/a Posts
July 26th, 2008
07:35 AM
#3

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's Avatar
Phil Grimpo
Guest
n/a Posts
July 26th, 2008
06:45 PM
#4

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's Avatar
Phil Grimpo
Guest
n/a Posts
August 12th, 2008
10:15 PM
#5

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.
>>
>>


 
Not the answer you were looking for? Post your question . . .
189,815 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors