Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

charset problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Limiting combined downloads  
Author Message
Philip Washington

External


Since: Jun 05, 2005
Posts: 1



(Msg. 1) Posted: Sun Jun 05, 2005 9:53 pm
Post subject: charset problem
Archived from groups: alt>apache>configuration (more info?)

I have a php page which is running on httpd 2.0.47 RHEL3 and 2.0.52
on RHEL4. The later was just installed. One of the first things we
noted was that extended characters (degrees, greek alphabet ) being
pulled from the database were not being displayed correctly. Usually
a blank space instead of the character.
The default character set on both is UTF-8 which is the same as the
database. I am kind of at a loss here as to what is going wrong.

I don't think apache is the problem, because I have compared the
configuration files and they appear to be pretty much the same (especially
with regards to the charsets ). I was thinking that it is either the
platform or php. What I have learned in the last 2 days is that I know
nothing about charsets and fonts and how they are handled within
apache-php .

Any help in what I should be doing to troubleshoot this problem would be
greatly appreciated.

 >> Stay informed about: charset problem 
Back to top
Login to vote
Terry

External


Since: Mar 05, 2005
Posts: 4



(Msg. 2) Posted: Mon Jun 06, 2005 7:04 am
Post subject: Re: charset problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Philip Washington wrote:
 > I have a php page which is running on httpd 2.0.47 RHEL3 and 2.0.52
 > on RHEL4. The later was just installed. One of the first things we
 > noted was that extended characters (degrees, greek alphabet ) being
 > pulled from the database were not being displayed correctly. Usually
 > a blank space instead of the character.
 > The default character set on both is UTF-8 which is the same as the
 > database. I am kind of at a loss here as to what is going wrong.
 >
 > I don't think apache is the problem, because I have compared the
 > configuration files and they appear to be pretty much the same (especially
 > with regards to the charsets ). I was thinking that it is either the
 > platform or php. What I have learned in the last 2 days is that I know
 > nothing about charsets and fonts and how they are handled within
 > apache-php .
 >
 > Any help in what I should be doing to troubleshoot this problem would be
 > greatly appreciated.

This is probably too simple - if you view the page in your browser and
do a view source, can you see
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">?

That is my first, best guess.

HTH
TK
<a style='text-decoration: underline;' href="http://www.wejuggle2.com/" target="_blank">http://www.wejuggle2.com/</a>
Still Having a Ball

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
<a style='text-decoration: underline;' href="http://www.newsfeeds.com" target="_blank">http://www.newsfeeds.com</a> The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: charset problem 
Back to top
Login to vote
phwashington

External


Since: Jun 06, 2005
Posts: 4



(Msg. 3) Posted: Mon Jun 06, 2005 10:58 am
Post subject: Re: charset problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I changed it but it still didn't help. It was originally
<meta http-equiv"Content-Type" content="text/html;
charset=windows-1252">

The other thing I have noted is that when I run phpinfo() on the system
where characters are displayed correctly under
Environment
LANG en_US.UTF-8
on the other systems where the characters are not displayed correctly I
see
LANG C
On this later system when I log in as root
 >echo $LANG
en_US.UTF-8

Which makes me wonder if the apache user is not seeing this environment
variable correctly.



The other differences I am seeing in php configure
Working system
--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex'
Non working
'--enable-mbstring=shared' '--enable-mbstr-enc-trans'
'--enable-mbregex'

Thanks for the help even though it didn't work. I was kind of stunned
to see that one of the developers had set the charset to windows-1252
when programming in a linux environment. My guess though is he was
using FrontPage or something and it automatically input this.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: charset problem 
Back to top
Login to vote
andré_lozano

External


Since: Jun 11, 2005
Posts: 1



(Msg. 4) Posted: Sat Jun 11, 2005 1:55 am
Post subject: Re: charset problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

try to add a default charset in the config file of apache
like this

AddDefaultCharset utf-8


phwashington RemoveThis @comcast.net a écrit :
 > I changed it but it still didn't help. It was originally
 > <meta http-equiv"Content-Type" content="text/html;
 > charset=windows-1252">
 >
 > The other thing I have noted is that when I run phpinfo() on the system
 > where characters are displayed correctly under
 > Environment
 > LANG en_US.UTF-8
 > on the other systems where the characters are not displayed correctly I
 > see
 > LANG C
 > On this later system when I log in as root
 >
  >>echo $LANG
 >
 > en_US.UTF-8
 >
 > Which makes me wonder if the apache user is not seeing this environment
 > variable correctly.
 >
 >
 >
 > The other differences I am seeing in php configure
 > Working system
 > --enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex'
 > Non working
 > '--enable-mbstring=shared' '--enable-mbstr-enc-trans'
 > '--enable-mbregex'
 >
 > Thanks for the help even though it didn't work. I was kind of stunned
 > to see that one of the developers had set the charset to windows-1252
 > when programming in a linux environment. My guess though is he was
 > using FrontPage or something and it automatically input this.
 >


--
@mitiés

André Lozano
Metz 57000

<web> Loz from provisoire </web>
+ + + + + + + + + + + + + + + + + + +
<a style='text-decoration: underline;' href="http://provisoire.com" target="_blank">http://provisoire.com</a>
<a style='text-decoration: underline;' href="http://provisoire.net" target="_blank">http://provisoire.net</a>
<a style='text-decoration: underline;' href="http://provisoire.org" target="_blank">http://provisoire.org</a>
+ + + + + + + + + + + + + + + + + + +
cms multimedia project
<a style='text-decoration: underline;' href="http://logz.org" target="_blank">http://logz.org</a>
<a style='text-decoration: underline;' href="http://sourceforge.net/projects/logz/" target="_blank">http://sourceforge.net/projects/logz/</a>

ordinausore project
<a style='text-decoration: underline;' href="http://provisoire.net/nicole" target="_blank">http://provisoire.net/nicole</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: charset problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Charset Problem - Hello, i have a html-page with this sourcecode: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>TEST</title> <meta http-equ...

Apache 2.0.47 charset problem. - Hi there all, I was wondering if anyone had had this problem with there Apache servers. I have a perl script on my server that emails users on a list. When I use the ' char, it come out on the email as â. I have tried to set AddDefaultCharset to various...

Charset on apache - Hi, I wrote a simple page with a different charset that is displayed properly on the browser, but when i placed the page under apache, i see strange characters. I checked my conf file and the apache loads the right charset. Any ideas? Thanks Shlomi

changing charset for downloading files - Hi I'm from Slovenia and our writing includes characters such as c, s, z (I don't even know if you got them right but it doesn't matter). The corresponding charset for this writing is WINDOWS-1250. I'm serving some files to people from my apache but the...

CGI Problem - Dear Friends, Since downloading/installing the new Apache 2.0.52 version (and I've been away from this for a year now), I have the following problem (while working locally with 127.0.0.1 on a WinXP machine) in my office: I have in my..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]