php-i18n Digest 8 Mar 2003 17:16:42 -0000 Issue 158
Topics (messages 490 through 496):
Re: Sablotron and Shift-jis
490 by: Michel Sahyoun
493 by: Moriyoshi Koizumi
Re: [PHP-DEV] Help: Sablotron and Shift-jis
491 by: Marcus Bφrger
492 by: Michel Sahyoun
Re: [PHP-DEV] Re: [PHP-I18N] Help: Sablotron and Shift-jis
494 by: Christian Stocker
Re: [PHP-XML-DEV] Re: [PHP-I18N] Help: Sablotron and Shift-jis
495 by: Melvyn Sopacua
PHP, Unicode, SAPdb
496 by: Nino Katic
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 ---
Does anyone have an example of using XSLT with Sablotron to transform and
XML document containing Shift-jis encoded characters?
I keep getting the following error message: Illegal Character for Encoding
'Shift-jis'
I am using the latest from snap.php.net and sablotron 0.97 FullPack with
iconv, and Javascript.
In my php file, I call xslt_set_encoding($xsltHandle, 'Shift-jis');
My xsl file has <xsl:output method="xml" omit-xml-declaration="yes"
encoding="Shift-jis" />
My XML file has: <?xml version="1.0" encoding="Shift-jis" ?>
Am I doing something wrong? Is the encoding name misspelled? Anything else I
could check?
Thanks,
Michel
--- End Message ---
--- Begin Message ---
It works for me. See the attached example. Anyway, you don't have to
crosspost your question to [EMAIL PROTECTED], which is for developing
php internals and irrelevant for such user questions.
Hope this helps
Moriyoshi
"Michel Sahyoun" <[EMAIL PROTECTED]> wrote:
> Does anyone have an example of using XSLT with Sablotron to transform and
> XML document containing Shift-jis encoded characters?
>
> I keep getting the following error message: Illegal Character for Encoding
> 'Shift-jis'
>
> I am using the latest from snap.php.net and sablotron 0.97 FullPack with
> iconv, and Javascript.
>
> In my php file, I call xslt_set_encoding($xsltHandle, 'Shift-jis');
> My xsl file has <xsl:output method="xml" omit-xml-declaration="yes"
> encoding="Shift-jis" />
> My XML file has: <?xml version="1.0" encoding="Shift-jis" ?>
>
> Am I doing something wrong? Is the encoding name misspelled? Anything else I
> could check?
>
> Thanks,
>
> Michel
>
>
>
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
<?xml version="1.0" encoding="Shift_JIS" ?>
<demo>
< Ν>aha</ Ν>
<’Π>def</’Π>
<€Σ>ghi</€Σ>
</demo>
<?php
$xp = xslt_create();
xslt_set_encoding($xp, "Shift_JIS");
xslt_process($xp, "test.xml.txt", "test.xsl.txt", "result.xml");
?>
<?xml version="1.0" encoding="Shift_JIS"?>
<\ xmlns="http://www.w3.org/TR/xhtml1/strict">
<\vf content="aha"/>
<\vf content="def"/>
<\vf content="ghi"/>
</\>
<?xml version="1.0" encoding="Shift_JIS" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" encoding="Shift_JIS" />
<xsl:template match="demo">
<\>
<\vf content="{ Ν}" />
<\vf content="{’Π}" />
<\vf content="{€Σ}" />
</\>
</xsl:template>
</xsl:stylesheet>
--- End Message ---
--- Begin Message ---
At 00:40 07.03.2003, Michel Sahyoun wrote:
Does anyone have an example of using XSLT with Sablotron to transform and
XML document containing Shift-jis encoded characters?
I keep getting the following error message: Illegal Character for Encoding
'Shift-jis'
You could try: "SJIS" and "Shift_JIS" keep letter cases.
marcus
--- End Message ---
--- Begin Message ---
Thanks.
But I have tried SJIS and Shift_JIS in addition to a couple of other
combinations to no avail. I believe the problem might not be with the way
the encoding is spelled, but elsewhere.
If anyone has a working example of transforming an sjis or other eastern
language encoded xml document, that would be of great help.
Michel
"Marcus Bφrger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 00:40 07.03.2003, Michel Sahyoun wrote:
> >Does anyone have an example of using XSLT with Sablotron to transform and
> >XML document containing Shift-jis encoded characters?
> >
> >I keep getting the following error message: Illegal Character for
Encoding
> >'Shift-jis'
>
>
> You could try: "SJIS" and "Shift_JIS" keep letter cases.
>
> marcus
>
--- End Message ---
--- Begin Message ---
On Fri, 2003-03-07 at 08:50, Moriyoshi Koizumi wrote:
> It works for me. See the attached example. Anyway, you don't have to
> crosspost your question to [EMAIL PROTECTED], which is for developing
> php internals and irrelevant for such user questions.
>
ditto for php-xml-dev, a list _for_ developing of the xml extensions in
PHP and not _with_.
Your issue looks like a Sablotron problem and not a php at all, by the
way ;)
chregu
> Hope this helps
>
> Moriyoshi
>
>
> "Michel Sahyoun" <[EMAIL PROTECTED]> wrote:
>
> > Does anyone have an example of using XSLT with Sablotron to transform and
> > XML document containing Shift-jis encoded characters?
> >
> > I keep getting the following error message: Illegal Character for Encoding
> > 'Shift-jis'
> >
> > I am using the latest from snap.php.net and sablotron 0.97 FullPack with
> > iconv, and Javascript.
> >
> > In my php file, I call xslt_set_encoding($xsltHandle, 'Shift-jis');
> > My xsl file has <xsl:output method="xml" omit-xml-declaration="yes"
> > encoding="Shift-jis" />
> > My XML file has: <?xml version="1.0" encoding="Shift-jis" ?>
> >
> > Am I doing something wrong? Is the encoding name misspelled? Anything else I
> > could check?
> >
> > Thanks,
> >
> > Michel
> >
> >
> >
> > --
> > PHP Internationalization Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> ______________________________________________________________________
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Christian Stocker <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
At 08:50 3/7/2003, Moriyoshi Koizumi wrote:
Anyway, you don't have to
crosspost your question to [EMAIL PROTECTED], which is for developing
php internals and irrelevant for such user questions.
The same applies to [EMAIL PROTECTED]
Note the pattern :)
Met vriendelijke groeten / With kind regards,
Webmaster IDG.nl
Melvyn Sopacua
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"
--- End Message ---
--- Begin Message ---
Hi,
I'm new to this list, and I'm also new to i18n. I'm developing some web site
and i want to make it i18n. Basicly I want user to have all their country
specific charaters displayed correclty. Here, there are two problems. One is
dealing with DB and the other with PHP. Firstly I tried with MySQL but when
I saw it doesn't support unicode i gave up and switched to SAP db. SAP db
has unicode support BUT i can't make it sort country specific characters
right. I'm told that this is not possible to do on a server side and to make
it on client. Is this right? Secondly, i don't know what i need to do to
display that unicode data from SAP db using php? I tried playing a liitle
with those mb_string functions and settings, but unsuccesfull. For example
if i want to echo the word begining with some croatian specific characters
it displayes me "k" ??? So, my general question would be how to deal with
that display from php, and how with sort of country specific characters?
Tnx.
Nino
--- End Message ---