[xmlsec] UTF8

Aleksey Sanin aleksey@aleksey.com
Tue, 12 Aug 2003 00:15:53 -0700


This is a multi-part message in MIME format.
--------------050101050405060508060101
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

It sounds like libxml does not like your UTF8 data. I would suggest to try
to parse your file with 'xmllint' utility from libxml. It should give 
you a better error.
Hope it would help you to locate the problem.

Aleksey

Michiels Olivier wrote:

> Hi,
> I'm trying to sign an xml file containing utf8 characters. When I try 
> to parse the file I receive this error message:
> reg.xml:7: error: Input is not proper UTF-8, indicate encoding !
> keyname?buc_id=8047651268&cert_serialnumber=$timeStamp$&CN=
> reg.xml:7: error: Bytes: 0xE8 0x6A 0x61 0x76
>
> How can I avoid that problem ?
>
> Thanks,
> Michiels Olivier 


--------------050101050405060508060101
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
It sounds like libxml does not like your UTF8 data. I would suggest to
try<br>
to parse your file with 'xmllint' utility from libxml. It should give
you a better error.<br>
Hope it would help you to locate the problem.<br>
<br>
Aleksey<br>
<br>
Michiels Olivier wrote:<br>
<blockquote type="cite" cite="mid1060672388.20438.76.camel@Leenux">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="GENERATOR" content="GtkHTML/3.0.8">
Hi,<br>
I'm trying to sign an xml file containing utf8 characters. When I try
to parse the file I receive this error message:<br>
reg.xml:7: error: Input is not proper UTF-8, indicate encoding !<br>
keyname?buc_id=8047651268&amp;amp;cert_serialnumber=$timeStamp$&amp;amp;CN=<br>
reg.xml:7: error: Bytes: 0xE8 0x6A 0x61 0x76<br>
  <br>
How can I avoid that problem ?<br>
  <br>
Thanks,<br>
Michiels Olivier
</blockquote>
</body>
</html>

--------------050101050405060508060101--