[Techtalk] php help

Maria McKinley mariak at mariakathryn.net
Thu May 30 04:50:38 UTC 2013


Ugh, yes. It appears emacs has not been saving files as utf-8. Thanks so
much. Now, I just need to figure out how to change the encodings of a bunch
of files.

thanks,
maria


On Wed, May 29, 2013 at 9:12 PM, Lisa Kachold <lisakachold at obnosis.com>wrote:

> Hi Maria,
>
> On Wed, May 29, 2013 at 7:33 PM, Maria McKinley <mariak at mariakathryn.net>wrote:
>
>> Hi there!
>>
>> I am getting weird characters at the bottom of my php page outputs, and I
>> can't figure out why. My searches tell me it is related to character
>> encoding, but I can't figure out where else I could change the encoding.
>>
>> ella:~# echo $LANG
>> en_US.UTF-8
>>
>> I've set encoding for utf-8 in /etc/apache2/conf.d/charset and php.ini
>>
>> To look at what I am talking about at the very bottom of this page are the
>> weird characters:
>>
>> http://www.shadlenlab.columbia.edu/test.php
>>
>> This is a very simple php page:
>>
>> <html>
>> <head>
>> <title>PHP Test</title>
>> </head>
>> <body>
>> <?php phpinfo(); ?>
>> </body>
>> </html>
>>
>> The characters do not show up on an html page with no php. Any ideas?
>>
>
> Quick Answer:   You're telling the browser that what you're sending is
> UTF-8, but it's really ISO-8859-1.
>
> Detail:  It seems the file was not saved as utf-8.   Check and verify
> that your files are actually being saved as  "UTF-8" will produce the
> desired results. No need to set header(); nor modifications in apaches
> config or *.htaccess*. A silly mistake really, but a common one!
>
> Reference:
> http://stackoverflow.com/questions/5445137/utf-8-encoded-html-pages-show-questions-marks-instead-of-characters
>
>
>
>> thanks,
>> Maria
>>
>> _______________________________________________
>> Techtalk mailing list
>> Techtalk at linuxchix.org
>> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>>
>
>
>
> --
>
> (503) 754-4452 Android
> (623) 239-3392 Skype
> (623) 688-3392 Google Voice
> **
> it-clowns.com <http://it-clowns.com/d/>
> Chief Clown
>
>
>
>
>
>
>
>
>
>
>
>
>
>


-- 
Maria Mckinley
Programmer and System Administrator
www.mariakathryn.net
www.linkedin.com/in/mariamckinley


More information about the Techtalk mailing list