Adobe Dreamweaver Forums



Last 10 THreads :         x and y into Latitude and longitdue (Last Post : Ayush.Jain - Replies : 10 - Views : 11 )           »          Site Map problem (Last Post : Kcheval - Replies : 0 - Views : 1 )           »          Image icons disappear when CPD is deleted (Last Post : Peter Grainge - Replies : 1 - Views : 2 )           »          FMS3 Linux and virtual host (Last Post : RussianMedved - Replies : 0 - Views : 1 )           »          Flash Media Server 2.0 (Last Post : Ajay P - Replies : 3 - Views : 13 )           »          Advanced datagrid using Remote Objects (Last Post : rkcy - Replies : 0 - Views : 1 )           »          Unable to create SWC in Flash CS4 (Last Post : ChickenSupreme - Replies : 0 - Views : 1 )           »          Extension Manager CS4 not installing extensions inDreamweaver CS4 (Last Post : Tom Dupre - Replies : 16 - Views : 17 )           »          Upsized Access DB not playing friendly (Last Post : Dooza - Replies : 1 - Views : 2 )           »          FLV won't work (Last Post : mixmasterdsr04 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Cold Fusion
 
Tags: , , ,



Reply
  #1 (permalink)  
Old 07-24-2008, 06:58 AM
dynason
 
Posts: n/a
Diggs:
Default utf8 characters not displayed correctly

I have a database created with collation of latin1_swedish_ci which contains
big5. I realise that I have to create the db using utf8 in order to display
correctly. However, due to the db was created long ago, I could not change it.
Is it possible to do a conversion before the characters are displayed?

default charset of apache is utf-8
connection string is added "useUnicode=true&characterEncoding=UTF-8"



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 06:58 AM
Daverms
 
Posts: n/a
Diggs:
Default Re: utf8 characters not displayed correctly

Hi,

Use the http://livedocs.adobe.com/coldfusion...3.html#2962107 tag like this,

<cfprocessingdirective pageencoding=#your_encoding_type#>

Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 06:58 AM
dynason
 
Posts: n/a
Diggs:
Default Re: utf8 characters not displayed correctly

I have tried before but does not work.

Pls me provide more information:

the information inputted to database was from a website with charset ="big5".
actually, this website is developed in php.

Now, I want to use CF to display the information from the database. the
website is in utf-8.

The charset in the database should be in big5. I possibly need big5-to-utf8
conversion?

Reply With Quote


  #4 (permalink)  
Old 07-24-2008, 06:58 AM
Daverms
 
Posts: n/a
Diggs:
Default Re: utf8 characters not displayed correctly

Hi,

Try like this,

<cfcontent type="text/html; charset=big5" reset="no">


Reply With Quote
  #5 (permalink)  
Old 07-24-2008, 06:58 AM
PaulH **AdobeCommunityExpert**
 
Posts: n/a
Diggs:
Default Re: utf8 characters not displayed correctly

dynason wrote:
> I have a database created with collation of latin1_swedish_ci which contains


what "database"? what datatypes?

> big5. I realise that I have to create the db using utf8 in order to display


if the columns holding your text datatypes aren't unicode capable, then you'll
never get the data out except the same way it went in.

depending on the db, datatypes, app server, it's a good bet that the data's not
big5 but some corruption of it.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk