![]() |
sponsored links |
|
|
sponsored links
|
|
|
2
13th March 00:46
External User
Posts: 1
|
ID: 31994
Updated by: sniper@php.net Reported By: misnet at hotmail dot com -Status: Open +Status: Feedback Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-02-16 10:06:47] misnet at hotmail dot com Description: ------------ a.xml ============================================= <?xml version="1.0" encoding="GB2312"?> <Article> <Title>test</Title> <Author>ehero</Author> <ComeFrom>Öйú</ComeFrom> <HtmlUrl>a.html</HtmlUrl> <CatalogId>2</CatalogId> <Contents><![CDATA[²âÊÔ]]></Contents> <AddTime>2005Äê</AddTime> <UpdateTime></UpdateTime> <Hits>3</Hits> <ServerFile></ServerFile> <LocalFile></LocalFile> <EncodeLocalFile></EncodeLocalFile> <PageIndex>0</PageIndex> <TotalPageNum>1</TotalPageNum> <PageUrl>a.shtml</PageUrl> </Article> ============================================= cms.xsl: ============================================= <?xml version="1.0" encoding="GB2312" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns hp="http://php.net/xsl" xsl:extension-element-prefixes="php"><xsl utput method="html" encoding="GB2312" indent="yes"/><xsl:template match="/"> <html> ...... ============================================= s.php: ============================================= <?php $xml = new DOMDo***ent("1.0","GB2312"); $xml->load("a.xml"); $xsl = new DOMDo***ent("1.0","GB2312"); $xsl->load("cms.xsl"); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); $proc->registerPHPFunctions(); $d = $proc->transformToUri($xml,"s.xml"); ?> ============================================= When I run s.php, it will be wrong!.Below is the exception messages. Warning: output conversion failed due to conv error in D:\myphp\yibo\t.php on line 9 Warning: Bytes: 0xB5 0xEB 0x2D 0x3C in D:\myphp\yibo\t.php on line 9 I have tested $xml->load("a.xml") and $xsl->load("cms.xsl"),they are right. I can get $xml->saveXML() and $xsl->saveXML(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
3
13th March 03:45
External User
Posts: 1
|
ID: 31994
User updated by: misnet at hotmail dot com Reported By: misnet at hotmail dot com -Status: Feedback +Status: Open Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5.0.3 New Comment: Not be resolved! The same result. Previous Comments: ------------------------------------------------------------------------ [2005-02-25 14:38:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-02-16 10:06:47] misnet at hotmail dot com Description: ------------ a.xml ============================================= <?xml version="1.0" encoding="GB2312"?> <Article> <Title>test</Title> <Author>ehero</Author> <ComeFrom>Öйú</ComeFrom> <HtmlUrl>a.html</HtmlUrl> <CatalogId>2</CatalogId> <Contents><![CDATA[²âÊÔ]]></Contents> <AddTime>2005Äê</AddTime> <UpdateTime></UpdateTime> <Hits>3</Hits> <ServerFile></ServerFile> <LocalFile></LocalFile> <EncodeLocalFile></EncodeLocalFile> <PageIndex>0</PageIndex> <TotalPageNum>1</TotalPageNum> <PageUrl>a.shtml</PageUrl> </Article> ============================================= cms.xsl: ============================================= <?xml version="1.0" encoding="GB2312" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns hp="http://php.net/xsl" xsl:extension-element-prefixes="php"><xsl utput method="html" encoding="GB2312" indent="yes"/><xsl:template match="/"> <html> ...... ============================================= s.php: ============================================= <?php $xml = new DOMDo***ent("1.0","GB2312"); $xml->load("a.xml"); $xsl = new DOMDo***ent("1.0","GB2312"); $xsl->load("cms.xsl"); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); $proc->registerPHPFunctions(); $d = $proc->transformToUri($xml,"s.xml"); ?> ============================================= When I run s.php, it will be wrong!.Below is the exception messages. Warning: output conversion failed due to conv error in D:\myphp\yibo\t.php on line 9 Warning: Bytes: 0xB5 0xEB 0x2D 0x3C in D:\myphp\yibo\t.php on line 9 I have tested $xml->load("a.xml") and $xsl->load("cms.xsl"),they are right. I can get $xml->saveXML() and $xsl->saveXML(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
4
17th March 21:04
External User
Posts: 1
|
ID: 31994
User updated by: misnet at hotmail dot com Reported By: misnet at hotmail dot com Status: Open Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5CVS-2005-02-25 New Comment: What about the bug? Can it not be resolved? Previous Comments: ------------------------------------------------------------------------ [2005-02-26 06:41:17] misnet at hotmail dot com Not be resolved! The same result. ------------------------------------------------------------------------ [2005-02-25 14:38:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-02-16 10:06:47] misnet at hotmail dot com Description: ------------ a.xml ============================================= <?xml version="1.0" encoding="GB2312"?> <Article> <Title>test</Title> <Author>ehero</Author> <ComeFrom>Öйú</ComeFrom> <HtmlUrl>a.html</HtmlUrl> <CatalogId>2</CatalogId> <Contents><![CDATA[²âÊÔ]]></Contents> <AddTime>2005Äê</AddTime> <UpdateTime></UpdateTime> <Hits>3</Hits> <ServerFile></ServerFile> <LocalFile></LocalFile> <EncodeLocalFile></EncodeLocalFile> <PageIndex>0</PageIndex> <TotalPageNum>1</TotalPageNum> <PageUrl>a.shtml</PageUrl> </Article> ============================================= cms.xsl: ============================================= <?xml version="1.0" encoding="GB2312" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns hp="http://php.net/xsl" xsl:extension-element-prefixes="php"><xsl utput method="html" encoding="GB2312" indent="yes"/><xsl:template match="/"> <html> ...... ============================================= s.php: ============================================= <?php $xml = new DOMDo***ent("1.0","GB2312"); $xml->load("a.xml"); $xsl = new DOMDo***ent("1.0","GB2312"); $xsl->load("cms.xsl"); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); $proc->registerPHPFunctions(); $d = $proc->transformToUri($xml,"s.xml"); ?> ============================================= When I run s.php, it will be wrong!.Below is the exception messages. Warning: output conversion failed due to conv error in D:\myphp\yibo\t.php on line 9 Warning: Bytes: 0xB5 0xEB 0x2D 0x3C in D:\myphp\yibo\t.php on line 9 I have tested $xml->load("a.xml") and $xsl->load("cms.xsl"),they are right. I can get $xml->saveXML() and $xsl->saveXML(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
5
20th March 01:24
External User
Posts: 1
|
ID: 31994
Comment by: emil at wayers dot com Reported By: misnet at hotmail dot com Status: Open Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5CVS-2005-02-25 New Comment: This error/problem resolves around your used encoding type. when using encoding="GB2312" in php5.0.4/cvs-current the engine will issue a warning at the exact point a charcter has been found which isn't suitable for this encoding context. My script, which is similar to the given script, issued the exact same warning on a character (ë) when using the standard iso encoding. After I changed my encoding to UTF-8 all reported problems where gone. I'm sure this isn't a real engine f*ck up but just a misguided error message But if this workaround doesn't work for you try changingyour Article->ComeFrom & Article->Contents & Article->AddTime content into htmlentities. good luck! Previous Comments: ------------------------------------------------------------------------ [2005-03-28 04:43:12] misnet at hotmail dot com What about the bug? Can it not be resolved? ------------------------------------------------------------------------ [2005-02-26 06:41:17] misnet at hotmail dot com Not be resolved! The same result. ------------------------------------------------------------------------ [2005-02-25 14:38:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-02-16 10:06:47] misnet at hotmail dot com Description: ------------ a.xml ============================================= <?xml version="1.0" encoding="GB2312"?> <Article> <Title>test</Title> <Author>ehero</Author> <ComeFrom>Öйú</ComeFrom> <HtmlUrl>a.html</HtmlUrl> <CatalogId>2</CatalogId> <Contents><![CDATA[²âÊÔ]]></Contents> <AddTime>2005Äê</AddTime> <UpdateTime></UpdateTime> <Hits>3</Hits> <ServerFile></ServerFile> <LocalFile></LocalFile> <EncodeLocalFile></EncodeLocalFile> <PageIndex>0</PageIndex> <TotalPageNum>1</TotalPageNum> <PageUrl>a.shtml</PageUrl> </Article> ============================================= cms.xsl: ============================================= <?xml version="1.0" encoding="GB2312" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns hp="http://php.net/xsl" xsl:extension-element-prefixes="php"><xsl utput method="html" encoding="GB2312" indent="yes"/><xsl:template match="/"> <html> ...... ============================================= s.php: ============================================= <?php $xml = new DOMDo***ent("1.0","GB2312"); $xml->load("a.xml"); $xsl = new DOMDo***ent("1.0","GB2312"); $xsl->load("cms.xsl"); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); $proc->registerPHPFunctions(); $d = $proc->transformToUri($xml,"s.xml"); ?> ============================================= When I run s.php, it will be wrong!.Below is the exception messages. Warning: output conversion failed due to conv error in D:\myphp\yibo\t.php on line 9 Warning: Bytes: 0xB5 0xEB 0x2D 0x3C in D:\myphp\yibo\t.php on line 9 I have tested $xml->load("a.xml") and $xsl->load("cms.xsl"),they are right. I can get $xml->saveXML() and $xsl->saveXML(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
6
20th March 11:13
External User
Posts: 1
|
ID: 31994
Comment by: cbdbs at yahoo dot com Reported By: misnet at hotmail dot com Status: Open Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5CVS-2005-02-25 New Comment: $doc = new DOMDo***ent('1.0','ISO-8859-1'); // we want a nice output $doc->formatOutput = true; $familias = $doc->appendChild(new DOMElement('familias')); while ($fam_datos = mysql_fetch_array($data)){ $familia = $familias->appendChild(new DOMElement('familia')); $familia->appendChild(new DOMElement('Apellidos', $fam_datos['Familia'])); $familia->appendChild(new DOMElement('Representante', $fam_datos['Apellidos'])); $familia->appendChild(new DOMElement('Nombre', $fam_datos['Nombres'])); $familia->appendChild(new DOMElement('Edad', $fam_datos['Edad'])); $familia->appendChild(new DOMElement('Salud', 'Sano')); } header('Content-Type: text/xml'); $do***ento = $doc->saveXML(); echo $do***ento; OUTPUT <b>Warning</b>: output conversion failed due to conv error in <b>c:\home\prueba\www\grid\xml.php</b>... Previous Comments: ------------------------------------------------------------------------ [2005-04-07 11:43:19] emil at wayers dot com This error/problem resolves around your used encoding type. when using encoding="GB2312" in php5.0.4/cvs-current the engine will issue a warning at the exact point a charcter has been found which isn't suitable for this encoding context. My script, which is similar to the given script, issued the exact same warning on a character (ë) when using the standard iso encoding. After I changed my encoding to UTF-8 all reported problems where gone. I'm sure this isn't a real engine f*ck up but just a misguided error message But if this workaround doesn't work for you try changingyour Article->ComeFrom & Article->Contents & Article->AddTime content into htmlentities. good luck! ------------------------------------------------------------------------ [2005-03-28 04:43:12] misnet at hotmail dot com What about the bug? Can it not be resolved? ------------------------------------------------------------------------ [2005-02-26 06:41:17] misnet at hotmail dot com Not be resolved! The same result. ------------------------------------------------------------------------ [2005-02-25 14:38:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-02-16 10:06:47] misnet at hotmail dot com Description: ------------ a.xml ============================================= <?xml version="1.0" encoding="GB2312"?> <Article> <Title>test</Title> <Author>ehero</Author> <ComeFrom>Öйú</ComeFrom> <HtmlUrl>a.html</HtmlUrl> <CatalogId>2</CatalogId> <Contents><![CDATA[²âÊÔ]]></Contents> <AddTime>2005Äê</AddTime> <UpdateTime></UpdateTime> <Hits>3</Hits> <ServerFile></ServerFile> <LocalFile></LocalFile> <EncodeLocalFile></EncodeLocalFile> <PageIndex>0</PageIndex> <TotalPageNum>1</TotalPageNum> <PageUrl>a.shtml</PageUrl> </Article> ============================================= cms.xsl: ============================================= <?xml version="1.0" encoding="GB2312" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns hp="http://php.net/xsl" xsl:extension-element-prefixes="php"><xsl utput method="html" encoding="GB2312" indent="yes"/><xsl:template match="/"> <html> ...... ============================================= s.php: ============================================= <?php $xml = new DOMDo***ent("1.0","GB2312"); $xml->load("a.xml"); $xsl = new DOMDo***ent("1.0","GB2312"); $xsl->load("cms.xsl"); $proc = new XSLTProcessor; $proc->importStyleSheet($xsl); $proc->registerPHPFunctions(); $d = $proc->transformToUri($xml,"s.xml"); ?> ============================================= When I run s.php, it will be wrong!.Below is the exception messages. Warning: output conversion failed due to conv error in D:\myphp\yibo\t.php on line 9 Warning: Bytes: 0xB5 0xEB 0x2D 0x3C in D:\myphp\yibo\t.php on line 9 I have tested $xml->load("a.xml") and $xsl->load("cms.xsl"),they are right. I can get $xml->saveXML() and $xsl->saveXML(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
7
20th March 11:13
External User
Posts: 1
|
ID: 31994
Updated by: derick@php.net Reported By: misnet at hotmail dot com -Status: Open +Status: Feedback Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5CVS-2005-02-25 New Comment: You're probably using a character which can not be represented in iso-8859-1... but I don't know for sure as I don't have the data. Come up with a *self-contained* script that does not rely on a database... Previous Comments: ------------------------------------------------------------------------ [2005-04-09 08:27:21] cbdbs at yahoo dot com $doc = new DOMDo***ent('1.0','ISO-8859-1'); // we want a nice output $doc->formatOutput = true; $familias = $doc->appendChild(new DOMElement('familias')); while ($fam_datos = mysql_fetch_array($data)){ $familia = $familias->appendChild(new DOMElement('familia')); $familia->appendChild(new DOMElement('Apellidos', $fam_datos['Familia'])); $familia->appendChild(new DOMElement('Representante', $fam_datos['Apellidos'])); $familia->appendChild(new DOMElement('Nombre', $fam_datos['Nombres'])); $familia->appendChild(new DOMElement('Edad', $fam_datos['Edad'])); $familia->appendChild(new DOMElement('Salud', 'Sano')); } header('Content-Type: text/xml'); $do***ento = $doc->saveXML(); echo $do***ento; OUTPUT <b>Warning</b>: output conversion failed due to conv error in <b>c:\home\prueba\www\grid\xml.php</b>... ------------------------------------------------------------------------ [2005-04-07 11:43:19] emil at wayers dot com This error/problem resolves around your used encoding type. when using encoding="GB2312" in php5.0.4/cvs-current the engine will issue a warning at the exact point a charcter has been found which isn't suitable for this encoding context. My script, which is similar to the given script, issued the exact same warning on a character (ë) when using the standard iso encoding. After I changed my encoding to UTF-8 all reported problems where gone. I'm sure this isn't a real engine f*ck up but just a misguided error message But if this workaround doesn't work for you try changingyour Article->ComeFrom & Article->Contents & Article->AddTime content into htmlentities. good luck! ------------------------------------------------------------------------ [2005-03-28 04:43:12] misnet at hotmail dot com What about the bug? Can it not be resolved? ------------------------------------------------------------------------ [2005-02-26 06:41:17] misnet at hotmail dot com Not be resolved! The same result. ------------------------------------------------------------------------ [2005-02-25 14:38:28] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31994 -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|
8
23rd March 10:34
External User
Posts: 1
|
ID: 31994
Updated by: php-bugs@lists.php.net Reported By: misnet at hotmail dot com -Status: Feedback +Status: No Feedback Bug Type: XSLT related Operating System: windows 2003 server PHP Version: 5CVS-2005-02-25 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2005-04-09 17:34:52] derick@php.net You're probably using a character which can not be represented in iso-8859-1... but I don't know for sure as I don't have the data. Come up with a *self-contained* script that does not rely on a database... ------------------------------------------------------------------------ [2005-04-09 08:27:21] cbdbs at yahoo dot com $doc = new DOMDo***ent('1.0','ISO-8859-1'); // we want a nice output $doc->formatOutput = true; $familias = $doc->appendChild(new DOMElement('familias')); while ($fam_datos = mysql_fetch_array($data)){ $familia = $familias->appendChild(new DOMElement('familia')); $familia->appendChild(new DOMElement('Apellidos', $fam_datos['Familia'])); $familia->appendChild(new DOMElement('Representante', $fam_datos['Apellidos'])); $familia->appendChild(new DOMElement('Nombre', $fam_datos['Nombres'])); $familia->appendChild(new DOMElement('Edad', $fam_datos['Edad'])); $familia->appendChild(new DOMElement('Salud', 'Sano')); } header('Content-Type: text/xml'); $do***ento = $doc->saveXML(); echo $do***ento; OUTPUT <b>Warning</b>: output conversion failed due to conv error in <b>c:\home\prueba\www\grid\xml.php</b>... ------------------------------------------------------------------------ [2005-04-07 11:43:19] emil at wayers dot com This error/problem resolves around your used encoding type. when using encoding="GB2312" in php5.0.4/cvs-current the engine will issue a warning at the exact point a charcter has been found which isn't suitable for this encoding context. My script, which is similar to the given script, issued the exact same warning on a character (ë) when using the standard iso encoding. After I changed my encoding to UTF-8 all reported problems where gone. I'm sure this isn't a real engine f*ck up but just a misguided error message But if this workaround doesn't work for you try changingyour Article->ComeFrom & Article->Contents & Article->AddTime content into htmlentities. good luck! ------------------------------------------------------------------------ [2005-03-28 04:43:12] misnet at hotmail dot com What about the bug? Can it not be resolved? ------------------------------------------------------------------------ [2005-02-26 06:41:17] misnet at hotmail dot com Not be resolved! The same result. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31994 -- Edit this bug report at http://bugs.php.net/?id=31994&edit=1 |
|
|