Re: Chinese Character Problem, (Part 2)
Dwayne Cole wrote: > cf ignores this. though it's a good idea for other reasons. > I've gone to sites that present both english and chinese without setting the > charset. bad bad habit to follow. i assure you these sites also have issues, i'll bet a beer in it. "hint early, hint often". and of course "Just Use Unicode". ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201652 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Chinese Character Problem, (Part 2)
Dwayne Cole wrote: > Presenting the chinese character is another challenge Just use Unicode. > I'm using this at the top of the page. > > > > OK that seems to work sometimes and other times, well. The prefered way is to set the charset in an actual HTTP header, i.e. using cfcontent. That takes preference over setting the charset in HTML. Of course it is a good idea to do it both. Please provide details about the cases where it doesn't work. > I've gone to sites that present both english and chinese without setting the > charset. I bet they set the charset in HTTP, not HTML. Jochem ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201664 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Chinese Character Problem, (Part 2)
So on the CMS side this: should be and on the Presentation side, this: should be ? Dwayne. >Just use Unicode. > > >> I'm using this at the top of the page. >> >> >> >> OK that seems to work sometimes and other times, well. > >The prefered way is to set the charset in an actual HTTP header, >i.e. using cfcontent. That takes preference over setting the >charset in HTML. Of course it is a good idea to do it both. > >Please provide details about the cases where it doesn't work. > > >> I've gone to sites that present both english and chinese without setting the >> charset. > >I bet they set the charset in HTTP, not HTML. > >Jochem > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201719 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Chinese Character Problem, (Part 2)
Dwayne Cole wrote: > So on the CMS side this: > > > > > > should be > > > > No, instead of "Unicode" use "UTF-8". > Yes. Jochem ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201750 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Chinese Character Problem, (Part 2)
OK I just need to clarify, because once I make this change it will have and impact on 10 sites (each using the same templates). Will this work with MS Access and MS SQL, or will I need some special drivers? -- Original Message -- From: Jochem van Dieten <[EMAIL PROTECTED]> Reply-To: cf-talk@houseoffusion.com Date: Wed, 06 Apr 2005 19:25:58 +0200 >Dwayne Cole wrote: >> So on the CMS side this: >> >> >> >> >> >> should be >> >> >> >> > >No, instead of "Unicode" use "UTF-8". > > >> > >Yes. > >Jochem > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201751 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Chinese Character Problem, (Part 2)
Dwayne Cole wrote: > OK I just need to clarify, because once I make this change it will have and > impact on 10 sites I certainly hope not. I hope it will have an impact on your development environment though. Changing a charset is not some minor change like updating a copyright statement from 2004 to 2005. It can impact everything, from your database to your hardcoded strings to the email you send out. And that is only if you are lucky, because usually half off them change one way and the other half the other way, requiring a differt corrective action. You need to separately verify everything. If you use Access, you need to verify you use the Unicode enabled driver. If you use MS SQL Server, you need to verify you use JDBC and not ODBC. You need to check pages to see if everything displays right. Emails to see if there are no weird characters in there. Etc. etc. etc. Jochem ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201759 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54