php-i18n Digest 21 Mar 2005 16:11:39 -0000 Issue 278

Topics (messages 845 through 847):

assign japanese string to variable
        845 by: ばヴぃん ぱてる
        846 by: Christophe Chisogne

Re: MB String suggestion
        847 by: Hayk Chamyan

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 ---
Following code contains japanese string that is assigned to variable
$str.
code
=============
<?php
$str = "ãããããããã";
?>
=========
When i am executing above program it gives me error as following.
Parse error: parse error, unexpected $ in
/var/www/html/bhavin/mohla1.2.Â2/b.php on line 3

Do anybody have solution for the above problem.
How can i assign above japanese string(ãããããããã) to
variable without error.

Thank You
bhawin13
-- 
ïããããããããï

--- End Message ---
--- Begin Message ---
$str = "ãããããããã";
..
Parse error: parse error, unexpected $ in

You probably use an multibyte encoding that use a value from 00h to 7fh (in a compounded byte) that represents a single character.

I guess it's a charset/encoding problem. A safe charset is the
UTF-8 encoding of Unicode, because value from 00h to 7fh arent used
in any compouned byte.

Check the php manual about mbstrings [1] and iconv [2],
where you'll found workaround and other information

Excerpt:
"These are examples of character encodings that are unlikely
to work with PHP : JIS, SJIS, ISO-2022-JP, BIG-5"

[1] LXIV. Multibyte String Functions
http://www.php.net/manual/en/ref.mbstring.php

[2] XLVIII. iconv Functions
http://www.php.net/manual/en/ref.iconv.php

--- End Message ---
--- Begin Message ---
Hi,
Is your offer still standing? Unfortunately, until now I haven't had a chance 
to do that.
What I've done is added ArmSCII support into PHP 4.3.10. And I have no
problems whatsoever with compilation, launching and operation under win32. 

Moriyoshi Koizumi wrote:
MK> Hi,

MK> Currently mbstring doesn't support Armenian character maps, and only iconv
MK> extension with libiconv and glibc 2.3(IIRC) offers that functionality.

MK> But AFAIK ArmSCII-8 encoding is a kind of single byte charset systems,
MK> so I think you can add a support for it to mbstring module with ease.

MK> Your contribution is greatly appreciated.


MK> Moriyoshi Koizumi


MK> Hayk Chamyan <[EMAIL PROTECTED]> wrote:

>> 
>> Hi All.
>> Is it possible to add the ArmSCII-8-to-UTF-8 charset conversion to the MB 
>> String extension?
>> 
>> -- 
>> Best regards,
>>  hayk
>>  mailto:[EMAIL PROTECTED]
>> 
>> 
>> -- 
>> PHP Internationalization Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 



-- 
Best regards,
 Hayk
 mailto:[EMAIL PROTECTED]

--- End Message ---

Reply via email to