Pound signs not displaying properly

This is a discussion on Pound signs not displaying properly within the Apache Web Server forums, part of the Web Server and Related Forums category; Our servers dont seem to be displaying all pound signs correctly. I think this is because of ASCII pound signs ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-26-2007
Aaron Gray
 
Posts: n/a
Default Pound signs not displaying properly

Our servers dont seem to be displaying all pound signs correctly.

I think this is because of ASCII pound signs verses UTF-8 or iso-8859-1.

My client is using an old version of MS Frontpage.

They are however displaying properly on other servers.

Is there a "one line hack" in 'httpd.conf' that will solve this.

Many thanks in advance,

Aaron


  #2 (permalink)  
Old 06-26-2007
dj.brainstorm@gmail.com
 
Posts: n/a
Default Re: Pound signs not displaying properly

i ended up converting £ signs to £ throughout html & db data....
i'm sure there's a better way but it worked...

  #3 (permalink)  
Old 06-26-2007
shimmyshack
 
Posts: n/a
Default Re: Pound signs not displaying properly

On Jun 26, 12:10 pm, "dj.brainst...@gmail.com"
<dj.brainst...@gmail.com> wrote:
> i ended up converting £ signs to &pound; throughout html & db data....
> i'm sure there's a better way but it worked...


yeah basically your client must save in utf if the data is then served
in utf, most clients wont know how, so dont force a particular charset
when serving their files, and then the ball in firmly in their court
to set the appropriate meta tag in the html. However that tag isnt
looked at with xhtml and IE parses the document "intelligently" anyway
to find its own opinion as to what the encoding should be.
Personally I set the server up to do utf8 where I control the clients
software, and then set their software to encode to utf - on sites
where there are multiple languages this is normal proactise I guess,
or else as you say you end up with htmlentities all over the place, or
documents each with their own encoding, and to me it makes sense to
set things up once, and just ask that they "do it that way" php has
conversion function which can blast through a whole lod of docs
quickly.
check out mb_convert_encoding and if you ever have exisitng docs that
your client would like altered, just chuck them through that, and its
done.

  #4 (permalink)  
Old 06-26-2007
Aaron Gray
 
Posts: n/a
Default Re: Pound signs not displaying properly

>check out mb_convert_encoding and if you ever have exisitng docs that
>your client would like altered, just chuck them through that, and its done.


Is iconv and mbstring relevant ?

Aaron



  #5 (permalink)  
Old 06-26-2007
shimmyshack
 
Posts: n/a
Default Re: Pound signs not displaying properly

On Jun 26, 4:39 pm, "Aaron Gray" <ang.use...@gmail.com> wrote:
> >check out mb_convert_encoding and if you ever have exisitng docs that
> >your client would like altered, just chuck them through that, and its done.

>
> Is iconv and mbstring relevant ?
>
> Aaron


yeah I guess so, you could also have a php auto_prepended script which
converted the encodings that were not utf8 but I guess that would not
be too transparent for some people who would find they had less
control than they wanted.
I would recommend not setting the default character set to utf if your
users are not encoding in that char set:
(from the manual)


"AddDefaultCharset utf-8
AddDefaultCharset should only be used when all of the text resources
to which it applies are known to be in that character encoding and it
is too inconvenient to label their charset individually."


so mentioning php was just in case you were still dealing with your
client and needed a fix for some documents if they had agreed to go
utf8 in future

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0