#!/bin/ch /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */ #include int main() { class CResponse Response; chchar *charSet_def, *charSet_cur; // get default char set charSet_def = Response.getCharSet(); // put char set "ISO-LATIN-1" Response.setCharSet(L"ISO-LATIN-1"); // get current char set charSet_cur = Response.getCharSet(); Response.begin(); Response.title(L"Test of Response.setCharSet and Response.getCharSet"); printf("

Test of Response.setCharSet and Response.getCharSet


\n"); printf("The Current Char Set is : "); fputws(charSet_def ? charSet_def : L"(null)", stdout); printf("
\n"); printf("The Current Char Set is : "); fputws(charSet_cur ? charSet_cur : L"(null)", stdout); printf("
\n"); Response.end(); }