php-i18n Digest 24 Nov 2002 15:23:07 -0000 Issue 134

Topics (messages 351 through 358):

Re: php utf8 encode
        351 by: Javi Lavandeira
        352 by: Stanislav
        353 by: Javi Lavandeira
        354 by: Gamid Isayev
        355 by: Stanislav
        356 by: Gamid Isayev

is there any good PHP editor for Japanese?
        357 by: Nanae

Multiple Languages
        358 by: Steve Vernon

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

On Fri, 22 Nov 2002 15:31:07 +0200 (EET) Stanislav <[EMAIL PROTECTED]> wrote:

> When i used utf8_encode() 
>   echo utf8_encode("&names$i=".$names);
> it dosen't seem at all to produce utf-8 encode, because when i saw the 
> result in IExplorer with utf-8 encoding the chars was wrong.

Make sure that you send a META tag in the HTML output telling the browser about the 
encoding you're using, something like:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Regards,

-- 
Javi Lavandeira ([EMAIL PROTECTED]) - http://www.ag0ny.com
--- End Message ---
--- Begin Message ---
Hi,

     Yes, i sent this header information but it's just informative for the
browser and i can manually select the encoding to UTF-8 from the browser,
but that's not the case, because the php output simply isn't utr-8 :)
and all i see is shits :).

                                           best Regards P.P.

____________________________________________________
Какво е реклама в Интернет? - http://reklama.mail.bg
--- End Message ---
--- Begin Message ---
Hi,

>      Yes, i sent this header information but it's just informative for the
> browser and i can manually select the encoding to UTF-8 from the browser,
> but that's not the case, because the php output simply isn't utr-8 :)
> and all i see is shits :).

Could you give me the URL of some example of this problem so I can take a look at it?

Regards,

-- 
Javi Lavandeira ([EMAIL PROTECTED]) - http://www.ag0ny.com
--- End Message ---
--- Begin Message ---
Hello Stanislav,

When i used utf8_encode() echo utf8_encode("&names$i=".$names);
Following code works fine for me:

<?
$name = chr(0xDC);
echo utf8_encode("name='$name'");
?>

If you like force browser to switch to UTF-8, you can use header():

<?
echo header("Content-type: text/html; charset=utf-8");
$name = chr(0xDC);
echo utf8_encode("name='$name'");
?>

BTW, utf8_encode()/utf8_decode() works _only_ for ISO-8859-1, not for win1251.

Gamid Isayev

--- End Message ---
--- Begin Message ---
sorry but i can't give you permenent ip, but my icq is : 71729968.

the problem seems to go to other direction - now i believe that
the php/mysql script returns win1251 character output , so i must 
try to find a way of converting win1251 to utf-8.

                                                       BEst Regards P.P.

____________________________________________________
Какво е реклама в Интернет? - http://reklama.mail.bg
--- End Message ---
--- Begin Message ---
Hello Stanislav,

the problem seems to go to other direction - now i believe that
the php/mysql script returns win1251 character output , so i must try to find a way of converting win1251 to utf-8.
You can use iconv().

Gamid Isayev

--- End Message ---
--- Begin Message ---
Hello all,

Hello, I'm very new to PHP.

I've heard that PHPEdit is free and has nice features, so I downloaded and
play around it; however, it shows only some of Japanese character, so I gave
up using that editor.

What is a good editor for developing a japanese website with PHP/Perl?

Nanae,


--- End Message ---
--- Begin Message ---
Hiya,
    I'm working on my first international PHP project, which is a site that
displays differently in different languages. So I guess this is the place to
ask adive.

    Ive done the code with flags etc so people can select the country and so
the language. But im not sure about the best way to handle the text and
things such as meta tages.

    My origional idea was to have multiple include files named like uk.php,
french.php with seperate variables for the text parts, or do sommat in XML
which is basically the same.

    I cant find any sources on the net about best ways to do a site like
this.

    Help!

    Thanks,

    Steve

--- End Message ---

Reply via email to