php-i18n Digest 14 Aug 2013 21:00:15 -0000 Issue 464

Topics (messages 1446 through 1452):

gibberish output when using the loadHTMLFile() function.
        1446 by: atar
        1447 by: atar

Re: [php-i18n] gibberish output when using the loadHTMLFile() function.
        1448 by: Darren Cook

Re: gibberish output when using the loadHTMLFile() function
        1449 by: atar
        1450 by: Darren Cook
        1451 by: atar

PHP locale issue on Dragonfly BSD
        1452 by: Georg Bege

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 there!!

When I'm trying to load an external html document with the loadHTMLFile()
function and then I use the saveHTML() function to output its content,
some text in the external html document which is written in hebrew is
displayed in a gibberish format. is anyone here has an idea how to solve
this problem?

NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.

--- End Message ---
--- Begin Message ---
Hi there!!

When I'm trying to load an external html document with the loadHTMLFile() function and then I use the saveHTML() function to output its content, some text in the external html document which is written in hebrew is displayed in a gibberish format. is anyone here has an idea how to solve this problem?

NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.

--- End Message ---
--- Begin Message ---
> When I'm trying to load an external html document with the loadHTMLFile()
> function and then I use the saveHTML() function to output its content,
> some text in the external html document which is written in hebrew is
> displayed in a gibberish format. is anyone here has an idea how to solve
> this problem?
> 
> NOTE: the document itself is encoded in utf-8 character set.

What is the PHP internal encoding?  (Look through your phpinfo() output).

Darren


--- End Message ---
--- Begin Message ---
Thanks for replying!

Which directive should I check for its value? there are number of directives that may be related to this problem, among them: mbstring.internal_encoding, iconv.internal_encoding.

Watch for your response!

Thanks in advance!!

atar.

--- End Message ---
--- Begin Message ---
> Which directive should I check for its value? there are number of
> directives that may be related to this problem, among them:
> mbstring.internal_encoding, iconv.internal_encoding.

How about checking all of them :-)

If you are reading in UTF-8 files, and writing UTF-8 files, all internal
encoding values should be UTF-8.
If you have configuration values that are something else the two main
troubleshooting paths are:

 A: Read up in the manual on what the configuration does to see if the
current value is what you want;

 B: Try changing it (one setting at a time), and see if the problem you
have goes away.


Darren


--- End Message ---
--- Begin Message ---
Hi there!!

I think I've changed all the appropriate encoding parameters:

mb_internal_encoding("UTF-8");
iconv_set_encoding("internal_encoding", "UTF-8");
iconv_set_encoding("input_encoding", "UTF-8");
iconv_set_encoding("output_encoding", "UTF-8");/*
print_r(iconv_get_encoding());

Unfortunately, non of them solved that issue.

I've noticed that when I load the HTML page directly into the browser, it's displayed appropriately when the browser encodes the document with the UTF-8 charset, but when I instruct the browser to encode the HTML page with the ISO-8859-1 charset, it's displayed exactly as it is displayed when I load the HTML document through the "loadHTMLFile()" PHP's function!! this causes me to think that the "loadHTMLFile()" PHP's function loads its file argument with the ISO-8859-1 charset. now I apparently need to find a way to instruct the "loadHTMLFile()" PHP's function to load its file argument using the UTF-8 charset. I still didn't find this way. if someone has any idea, I'll be very happy to know!

Thanks in advance!!

atar.

--- End Message ---
--- Begin Message ---
Good day

I've a big issue with PHP:
PHP 5.4.16 (cli) (built: Jul 19 2013 20:22:43)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

on an Dragonfly BSD System - uname -a:
DragonFly serve-one.bsj-beschichtungs-systeme.de 3.5-DEVELOPMENT
DragonFly v3.5.0-DEVELOPMENT #0: Mon Jun 10 14:35:23 CEST 2013
[email protected]:/usr/obj/usr/src/sys/X86_64_GENERIC
 x86_64

The thing is, whatever Im doing - I cannot get the german (de_DE) locale
like by using nl_langinfo() or localeconv().
setlocale() actually works but it doesnt change a thing, thus does not
become effective.

regards,
Georg

--- End Message ---

Reply via email to