Coldfusion MX Tips collection (1) 1th/5 page _coldfusion

Source: Internet
Author: User
Tags odbc socket
Coldfusion with Access Chinese display issues
Author: Kyle 12/11/02

Content:

First, add the following code to the top of the page where you want to pass and process Chinese (you can also put it in the application.cfm, but in some cases it will be problematic):

<cfprocessingdirective pageencoding= "gb2312" >
<cfcontent type= "text/html; charset=gb2312 ">
<cfset setencoding ("URL", "gb2312") >
<cfset setencoding ("Form", "gb2312") >

Note: If you use Dreamweaver MX, you can insert the above code with cfpageencoding in the menu insert (Verify that your Windows system is in Simplified Chinese).

The above steps whether you use a database or not, as long as you want to deal with Chinese variables are required.

The following addresses the problem with Ms Access.
CFMX ODBC service, and ODBC Socket driver default configuration does not support double-byte characters, so even if you add more than the code to solve the problem of CFMX to deal with Chinese, all upload to ODBC Chinese still have problems, to let ODBC Service and ODBC Socket driver Support Chinese, you must modify its default mode as follows:

Verify that the ColdFusion MX ODBC Agent and the ColdFusion MX ODBC Server Services Two service are in the system.

Find the path to your CFMX installation, and if it's c:\Cfusionmx, run this line at the DOS prompt

C:/cfusionmx/db/slserver32/admin/setcp.bat OS (note OS is uppercase)

Successful, there will be the following tips:

DataDirect Sequelink Manager Version 5.2 (build 0092)
(c) Copyright 1995-2000 Merant, Inc., All rights reserved


Then reactivate the ColdFusion MX ODBC Agent and the ColdFusion MX ODBC Server Services two service, or reopen the system.

At this time in MS Access in Chinese is really no problem the above methods in WINNT4+CFMX+ACCESS97 and Win2K server+cfmx+access2002 are successful.

Note: If you want to restore the original settings, run the following command:
C:/cfusionmx/db/slserver32/admin/setcp.bat Default

To see the example here
Http://vvjohn.dyndns.org:8500/study/chinese.cfm
Other places to pay attention to in Chinese CFMX
CFMX not allowed to do filename in Chinese
And, of course, you can't use the file name with Chinese in Cfinclude.
Can not use encrypt and decrypt to handle Chinese

current 1/5 page   1 2345 Next read the full text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.