ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It痴 your move---enter to win here!
  #1  
Old June 30th, 2004, 10:41 AM
jhayward jhayward is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 1 jhayward User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Internation characters from MX6.1/MS SQL 2000/MS Server 2003

Hi.

We have just upgraded from CF 5 to CF MX6.1. We have japanese characters inserted in the code of our .cfm page. We also have the same characters being called from our MS SQL 2000 database through a ODBC socket connection, and placed in the same page. At this point we know how to display one or the other, but not both at the same time. The inclusion of charset=x-sjis in the cfcontent tag allows us to see the coded Japanese content properly. The exclusion of chaset=x-sjis from the cfcontent tag allows us to see only the Japanese characters pulled from the database properly. Success in one prevents the other from displaying properly. Has anyone been able to get both to display at the same time?

Also the ODBC sockets that we are using seem to have stopped working and have been crashing the server.
Using the CF MX6.1 MS SQL database connection type seems to prevent any success at all with the displaying of foreign database characters.

I am really getting close to reinstalling Coldfusion v.5.


------------------------first code displays the coded Japanese characters properly--------------------------------
<cfprocessingDirective pageencoding="x-sjis">
<cfset setEncoding("url","x-sjis")>
<cfset setEncoding("form","x-sjis")>
<cfcontent type="text/html; charset=x-sjis">

<cfquery
name="ArticleQry" datasource="xxxxx"
username="xxxxxt"
password="xxxxx">
Select * from articletext
</cfquery>

<cfoutput>
#ArticleQry.textvalue#
</cfoutput>

<P>高等教育を目指す学生が最適な学校を見つけたいと願うように、大学側も入学 カがそれぞれの「キャンパス文化」に相応し*、学校の方針および レ標を共有できるかを確かめたがっています。教育は学生と同様に学校にとっても高 ソな投資で*り、殆どの大学は定員を上回る入学願書を受け取ります。
<BR>

----------------------second code displays the database Japanese characters properly------------------------------
<cfprocessingDirective pageencoding="x-sjis">
<cfset setEncoding("url","x-sjis")>
<cfset setEncoding("form","x-sjis")>
<cfcontent type="text/html;">

<cfquery
name="ArticleQry" datasource="xxxxx"
username="xxxxxt"
password="xxxxx">
Select * from articletext
</cfquery>

<cfoutput>
#ArticleQry.textvalue#
</cfoutput>

<P>高等教育を-レ指す学生が最適な学校を見つけたいと願うように、大学側も入学 カがそれぞれの「キャンパス文化」に相応し*、学校の方針および- レ標を共-Lできるかを確かめたがっています。教育は学生と同-lに学校にとっても高 ソな投資で り、-wどの大学は定員を上回る入学願書を受け取ります。
<BR>

Reply With Quote
  #2  
Old June 30th, 2004, 11:50 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
I have never needed to use unicode in my apps, but I am sure this is possible. A Google search found these references, maybe they can help?

http://www.macromedia.com/support/c...alization_cfmx/

http://www.macromedia.com/support/c...nts/tn18331.htm

http://livedocs.macromedia.com/cold...n.htm#wp1141005
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Last edited by kiteless : June 30th, 2004 at 11:54 AM.

Reply With Quote
  #3  
Old July 16th, 2004, 11:40 AM
esch esch is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 2 esch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Custom tag for encoding specific text.

There is a custom tag on the MM devex that can encode your text.

cf_charsetconvert

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Internation characters from MX6.1/MS SQL 2000/MS Server 2003


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway