CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Input CJK data, items in db or redisplay is in confusion

Print topic Send  topic

Author Message
coddz

Posts: 19
Posted: 07/02/2009, 6:16 PM

Codecharge Studio 4.2.00.040

DB: oracle 9i

Generate JSP or PHP code

Codecharge Studio Project Setting:
1. Make sure that Project Default HTML Encoding is set to UTF-8
2. In Project Settings -> Locales & Encoding, set file encoding and default HTML Encoding to UTF-8
3. In Project Settings -> Locales & Encoding -> Site Locales, for each locale choose Edit then set Output Encoding to UTF-8
4. Go into each page -> HTML Tab and set the <meta http-equiv="content-type" content="text/html; charset=utf-8">
5. Specify properly connection settings. There should be something like:
MySqlConnection.driver=org.gjt.mm.mysql.Driver
MySqlConnection.url=jdbc:mysql://localhost/DatabaseName?characterSetResults=UTF-8&characterEncoding=UTF-8&useUnicode=yes
Database Properties (One property per line):
characterSetResults=UTF-8
characterEncoding=UTF-8
useUnicode=yes
6. Open your web.xml file for edit and add the following code to the custom filter block:
<!--CharsetFilter start-->
<filter>
<filter-name>Charset Filter</filter-name>
<filter-class>com.codecharge.util.filters.CharsetFilter</filter-class>
<init-param>
<param-name>requestEncoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Charset Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--CharsetFilter end-->

Why? Input CJK data, items in db or redisplay is in confusion.
View profile  Send private message
coddz

Posts: 19
Posted: 07/02/2009, 9:47 PM

ok, just re-paste.

Thank you everyone.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.