[All]
Hotfix 3 available for 2009 versions of Delphi, C++Builder and RAD Studio
By: Tim DelChiaro
Abstract: Fixes international character issue with VCL for the Web
Hotfix 3 for Dephi, C++Builder and RAD Studio 2009 is now available at https://cc.embarcadero.com/item/27563. You can also review all the downloads for your registered products at https://cc.embarcadero.com/myreg.
Note that this hotfix is for version 2009 of these products. The problem does not occur in the latest 2010 version.
Readme for RAD Studio 2009 Hotfix 3
This software patch is being provided to licensed users of RAD Studio 2009. Installation and use are governed by the license statement for RAD Studio 2009.
This Hotfix applies to:
Products: RAD Studio, Delphi
Version: 2009
Update level: All
Editions: Professional, Enterprise, Architect
Languages: English, German, French, Japanese
Description of the update that is included in this hotfix:
----------------------------------------------------------
On a Traditonal Chinese Operating System, IntraWeb is outputting ????? on a web page.
TUTF8ContentParser is a WebRequest content parser that parses UTF-8 requests.
TUTF8ContentParser class automatically replace the default content parser when this unit (UTF8ContentParser) is used in a web application. You should only use UTF8ContentParser in web applications that generate UTF-8 responses.
To generate UTF-8 encoded responses, set Response.ContentType as follows before setting Response.Content.
Response.ContentType := 'text/html; charset=UTF-8';
Note that, if your application uses the ReqMulti unit to parse multipart content, ReqMulti must appear in the application uses list after UTF8ContentParser.
Internal Tracking Number(s): 269432
Instructions for Delphi:
------------------------
1. Download and install IntraWeb build 10.0.21 from https://www.atozed.com/intraweb/Download/Files/index.EN.aspx
2. Place UTF8ContentParser.pas in your project directory
3. Add UTF8ContentParser.pas to your project
4. Add UTF8ContentParser.pas to your Uses list in your application
Instructions for C++Builder
---------------------------
1. Download and install IntraWeb build 10.0.21 from https://www.atozed.com/intraweb/Download/Files/index.EN.aspx
2. Create IntraWeb application using C++Builder language
3-1. In project option, configure include path and library path to refer to Intraweb 10.0.21
3-2. In project option, turn off 'Use Runtime Packages'
4. In main source(Project1.cpp), modify #include as below
from
------
#ifdef VER210
#include
#endif
------
to
------
//#ifdef VER210
#include "UTF8ContentParser.hpp"
//#endif
------
5. Copy 'UTF8ContentParser.pas' of Hotfix1 to the project's folder and add it to the project
6. In addition, add 2 static library(webdsnap.lib, websnap.lib) files to the project to avoid linker error.
"C:\CodeGear\RAD Studio\6.0\lib\release\webdsnap.lib"
"C:\CodeGear\RAD Studio\6.0\lib\release\websnap.lib"
7. Build the project and run it. It works fine with multi-byte characters.
Copyright 2010, Embarcadero Technologies. All rights reserved.
Connect with Us