php-i18n Digest 14 Mar 2003 18:43:33 -0000 Issue 160
Topics (messages 501 through 506):
simple katakana to romaji converter function
501 by: Gary Ross
502 by: David Powers
504 by: Jean-Christian Imbeault
Re: Configuring Multibyte.
503 by: Jean-Christian Imbeault
Encoding Problems
505 by: Jürgen Hoffmann
506 by: a.h.s. boy
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 ---
I'm looking for a simple function to convert katakana to romaji in php.
I don't want to use kakasi but pure php. It should be easy enough to
write myself but if there is something already out there...
Gary
--- End Message ---
--- Begin Message ---
Gary Ross wrote:
:: I'm looking for a simple function to convert katakana to romaji in
:: php. I don't want to use kakasi but pure php. It should be easy
:: enough to write myself but if there is something already out there...
I've never used it myself, but there's a built-in function
mb_convert_kana()
http://www.php.net/manual/en/function.mb-convert-kana.php
David Powers
*******************************************
No-nonsense reviews of computer books
http://japan-interface.co.uk/webdesign/books.html
Save 10% on TopStyle CSS Editor
*******************************************
--- End Message ---
--- Begin Message ---
David Powers wrote:
Gary Ross wrote:
:: I'm looking for a simple function to convert katakana to romaji in
:: php. I don't want to use kakasi but pure php. It should be easy
:: enough to write myself but if there is something already out there...
I've never used it myself, but there's a built-in function
mb_convert_kana()
That function will not do what you want. It only converts from
half-width chars to ful-widths chars and vice versa.
Jc
--- End Message ---
--- Begin Message ---
Ricoche wrote:
(B>
(B> --enable-mbstring
(B
(BI believe this option is now enabled by default and should no longer be
(Bused at compile time.
(B
(B> mbstring.language = Japanese
(B> mbstring.http_input = auto
(B> mbstring.internal_encoding = EUC-JP
(B> mbstring.substitute_character = none
(B
(BThe above are all default values so no need to set them ...
(B
(B> mbstring.encoding_translation = On
(B
(BThis is needed.
(B
(B> For Apache I did the following in httpd.conf:
(B>
(B> LanguagePriority jp en
(B> AddCharset EUC-JP .euc
(B> AddCharset ISO-2022-JP .jis
(B> AddCharset SHIFT_JIS .sjis
(B> AddLanguage jp .jp
(B
(BI don't think this matters at all for PHP.
(B
(B> Is there anything else I need to do to ready my server for EUC-JP? Do I
(B> need to add anything to my PHP script files or to Mysql?
(B
(BAs for PHP I think your settings are ok.I don't know anything about
(BmySQL though but there probably are some settings that need to be set ...
(B
(BJc
--- End Message ---
--- Begin Message ---
Hi All,
I have a major encoding with my mysql driven php app. I have developed
my Application on Windows and deployed it on a Linux Box running mysql
and apache.
Now I have a problem with my UTF-8 Characters. Which I store in my mysql
database fine. But when displayed the utf-8 characters are displayed as
garbage in the Internet Explorer 6. When I change the Page Encoding in
the Browser explicitely everything is fine.
I have set default_charset = "utf-8" in php.ini
Runtime Environment:
Server:
Debian GNU/Linux Woody
Apache 1.3.26
Php4
In the <head> section of each php i have set the encoding explicitely as
such: <meta http-equiv="content-type" content="text/html;
charset=utf-8">
Helpy of any Kind is highly appreciated
Kind regards
Jürgen Hoffmann
ByteACTION GmbH
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer
Besuchen Sie uns doch auf der CeBIT 2003
in Halle 4/Stand 70
--- End Message ---
--- Begin Message ---
Jürgen --
I'm developing roughly the same way you are, and I found that, in order
to have "Auto-select" work with my UTF-8 declaration, Windows Update (I
have "Install on Demand" turned on) wanted to install a "Uniscribe"
module of some sort...once that was done, it worked fine on Auto-select.
spud
On Friday, March 14, 2003, at 05:18 AM, Jürgen Hoffmann wrote:
database fine. But when displayed the utf-8 characters are displayed as
-------------------------------------------------------------------
a.h.s. boy
spud(at)nothingness.org "as yes is to if,love is to yes"
http://www.nothingness.org/
-------------------------------------------------------------------
--- End Message ---