
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.
|
 |
 |
coddz
Posts: 19
|
| Posted: 07/02/2009, 9:47 PM |
|
ok, just re-paste.
Thank you everyone.
|
 |
 |
|

|
|
|
|