Re: [PHP] Dealing with XML charsets

2002-07-03 Thread Peter

On Tue, 02 Jul 2002 14:33:35 -0700, [EMAIL PROTECTED] (Clay Loveless) wrote:
 I haven't tried this myself yet, but will soon be facing a similar need.
 
 http://www.php.net/iconv
 
 That's probably the way I'll start off on tackling this problem ... Grab
 your XML document, check to see if it's in windows-1252, and if it is, run
 it through the iconv functions, then parse the XML data.

Thanks.  I tried this on my Windows development server and got absolutely no output 
from these functions, so gave up.  Now i'm wondering whether 
it's just a Windows-only bug: I'll have to look and see if my web hosting has this 
installed as it would be a smart option if it did work.

Using the unicode translation tables I built some kind of translation table which 
seemed to work, but it converted to utf-16 rather than utf-8, 
so everything showed as little squares rather than characters :-(  Otherwise this 
would have worked nicely (contact me if you want more details).

Thanks
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Dealing with XML charsets

2002-07-03 Thread Peter

On Tue, 2 Jul 2002 15:23:38 -0600, [EMAIL PROTECTED] (Ray Hunter) wrote:
 Check here:
 http://www.chilkatsoft.com/ChilkatXml.asp

Doesn't look as if it'll run under Unix?

 Google search:
 http://www.google.com/search?sourceid=navclientq=convert+xml+charset

I've been googling ont he topic for the past couple of days, and had no luck :-(




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Dealing with XML charsets

2002-07-03 Thread B i g D o g

Peter,

What OS are you running this on...if you are on windows then uncomment the
php_iconv.dll in your php.ini file and then you can see if you can run the
iconv functions.

If you are running under unix/linux then you need to compile php with the
iconv functions.

Example

./configure --with-iconv=/location/of/iconv

Iconv is a gnu app that you use for the conversions.

You can get more info GNU's website about iconv...

B i g D o g



- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 12:46 AM
Subject: Re: [PHP] Dealing with XML charsets


 On Tue, 2 Jul 2002 15:23:38 -0600, [EMAIL PROTECTED] (Ray Hunter)
wrote:
  Check here:
  http://www.chilkatsoft.com/ChilkatXml.asp

 Doesn't look as if it'll run under Unix?

  Google search:
  http://www.google.com/search?sourceid=navclientq=convert+xml+charset

 I've been googling ont he topic for the past couple of days, and had no
luck :-(




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Dealing with XML charsets

2002-07-02 Thread Peter

Hi,

Has anyone any advice as to how to deal with XML documents encoded in windows-1252: a 
character set that PHP's XML extension won't process?  I've 
got a large number of such documents, and using xml_parse_into_struct() would be the 
easiest way to handle them - but because of the encoding 
problem I keep on ending up with ? instead of characters in the document in certain 
places.  Is there any way I could convert the charset?

Thanks
Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Dealing with XML charsets

2002-07-02 Thread Ray Hunter

Check here:

http://www.chilkatsoft.com/ChilkatXml.asp

Google search:
http://www.google.com/search?sourceid=navclientq=convert+xml+charset

B i g D o g


- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 3:05 PM
Subject: [PHP] Dealing with XML charsets


 Hi,

 Has anyone any advice as to how to deal with XML documents encoded in
windows-1252: a character set that PHP's XML extension won't process?  I've
 got a large number of such documents, and using xml_parse_into_struct()
would be the easiest way to handle them - but because of the encoding
 problem I keep on ending up with ? instead of characters in the document
in certain places.  Is there any way I could convert the charset?

 Thanks
 Peter



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Dealing with XML charsets

2002-07-02 Thread Clay Loveless

I haven't tried this myself yet, but will soon be facing a similar need.

http://www.php.net/iconv

That's probably the way I'll start off on tackling this problem ... Grab
your XML document, check to see if it's in windows-1252, and if it is, run
it through the iconv functions, then parse the XML data.

-Clay


 From: Peter [EMAIL PROTECTED]
 Date: Tue, 02 Jul 2002 21:05:28 GMT
 To: [EMAIL PROTECTED]
 Subject: [PHP] Dealing with XML charsets
 
 Hi,
 
 Has anyone any advice as to how to deal with XML documents encoded in
 windows-1252: a character set that PHP's XML extension won't process?  I've
 got a large number of such documents, and using xml_parse_into_struct() would
 be the easiest way to handle them - but because of the encoding
 problem I keep on ending up with ? instead of characters in the document in
 certain places.  Is there any way I could convert the charset?
 
 Thanks
 Peter
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php