patel22p / mytinytodo

Automatically exported from code.google.com/p/mytinytodo
0 stars 0 forks source link

Incorrect default charset #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
incorrect default charset for russian language and unicode symbols

bad characters instead of right arrow in task date

using MTT 1.4.1 on Firefox 3, 4b10, Google Chrome 9, 10

I used to insert
header("Content-type: text/html; charset=utf-8");
on the 9-th line of index.php to fix this

Original issue reported on code.google.com by gizzat on 28 Feb 2011 at 7:34

GoogleCodeExporter commented 8 years ago
Can you tell me what Content-type header was sent by webserver before your 
patch?

Original comment by maxpozd...@gmail.com on 28 Feb 2011 at 7:39

GoogleCodeExporter commented 8 years ago
Content-Type: text/html; charset=windows-1251

Original comment by gizzat on 28 Feb 2011 at 7:51

GoogleCodeExporter commented 8 years ago
Oh, caught. Html meta tag will not override content-type charset sent by 
webserver. My mistake.

I think it's better to paste the line 
<code> <?php header('Content-type: text/html; charset=utf-8'); ?> </code>
to the first line of themes/default/index.php
or even to use "application/xhtml+xml" mime type.

Original comment by maxpozd...@gmail.com on 28 Feb 2011 at 7:53

GoogleCodeExporter commented 8 years ago
of course without <code></code> elements.

Original comment by maxpozd...@gmail.com on 28 Feb 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Yes, that works. Thank you :)

Original comment by gizzat on 28 Feb 2011 at 7:56

GoogleCodeExporter commented 8 years ago
Settings page also is ok?

Original comment by maxpozd...@gmail.com on 28 Feb 2011 at 8:03

GoogleCodeExporter commented 8 years ago
no, russian words are displayed incorrectly
and ajax request returned charset=windows-1251 header.

Original comment by gizzat on 28 Feb 2011 at 8:06

GoogleCodeExporter commented 8 years ago
Please update the files listed in changeset rb0b60c7ee0 to test if issue is 
fixed.

Original comment by maxpozd...@gmail.com on 2 Mar 2011 at 12:42

GoogleCodeExporter commented 8 years ago
The issue seems to be fixed. No wrong charsets.
Thanks.

Original comment by gizzat on 3 Mar 2011 at 1:54

GoogleCodeExporter commented 8 years ago

Original comment by maxpozd...@gmail.com on 2 Jun 2011 at 8:58