List Info

Thread: How to add GB2312 charset




How to add GB2312 charset
user name
2006-06-28 23:21:08
My libiconv also has GB2312. But my libxml2 does not have GB2312.
What I am doing is to set up an Apache Reverse Proxy Server. It works fine with Other language.
The mod_proxy_html uses HTMLParser.h.
Probably, HTMLParser.h calls libxml2.
cd /usr/local/libxml2
grep GB2312 *
cd include/libxml2
grep GB2312 *
Nothing shown with GB2312.
Nothing with EUC-CN either.
Please help!
Frank Peng.
 
On Wed, Jun 28, 2006 at 02:09:03PM -0400, netscape.net">frankpengnetscape.net wrote:
>; Hi,
> I compile libiconv-1.10 and libxml2-2.6.26. I need it support GB2312 charset.
Can anyone help me?
  my version of iconv on Linux has it:
paphio:~ -> iconv --list | grep 2312
CSGB2312//
GB2312//
paphio:~ ->
 if that's the case there is nothing specific to do.
Daniel
 
How to add GB2312 charset
user name
2006-06-29 07:57:18
On Wed, Jun 28, 2006 at 07:21:08PM -0400, frankpengnetscape.net wrote:
> My libiconv also has GB2312. But my libxml2 does not
have GB2312.

  define "libxml2 does not have GB2312" show me
the problem ! Instructions
are at: 
    http://xmlsoft.org/bugs.
html 
 works for me here.
paphio:~/XML -> cat tst.xml
<?xml version="1.0"
encoding="GB2312"?>
<doc/>
paphio:~/XML -> xmllint tst.xml
<?xml version="1.0"
encoding="GB2312"?>
<doc/>
paphio:~/XML ->

> What I am doing is to set up an Apache Reverse Proxy
Server. It works fine with Other language.

  Check with the persons implementing it. You are talking
about code I don't
know, I have no idea what it does, why it use libxml nor
how.

> The mod_proxy_html uses HTMLParser.h. 
> Probably, HTMLParser.h calls libxml2.
> cd /usr/local/libxml2
> grep GB2312 *
> cd include/libxml2
> grep GB2312 *
> Nothing shown with GB2312.
> Nothing with EUC-CN either.

  Tell me why you think you need to find
"GB2312" there ? This makes absolutely
no sense. If the support is in libiconv why do you expect
libxml2 would have to
handle it directly ? It delegate the work to libiconv,
precisely!

> Please help!
  
  Sorry, I can't debug your proxy.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )