cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kane <>
Subject Re: Cocoon-1.8's charset encoding problems
Date Thu, 01 Jan 1970 00:00:00 GMT

I have solved this problem, need to set encoding at two places,
<?xml version="1.0" encoding="gb2312"?> , 
as following:
<?xml version="1.0" encoding="gb2312"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>

<xsp:page language="java" xmlns:xsp="">
  <page title="Time of Day">
      // Define a variable to hold the time of day
      Date now = new Date();
      To the best of my knowledge, it's now中文
      <!-- Substitute time of day here -->

2000-10-20 15:24:00 :
>   We are using Cocoon-1.8 with Tomcat-4.0 to implement XML tranlation to 
>HTML, and there are many Chinese characters(GB2312), but cocoon can't process
>them correctly, all Chinese characters become "??" chars. Could you give me
>some advices on how to correct it? I have tried to set 
><?xml version="1.0" encoding="GB2312"?>, and it can't work too.
>Thanks a lot.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

View raw message