Click here to Skip to main content
15,905,323 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC dialog problem Pin
Beer17-May-03 7:48
Beer17-May-03 7:48 
GeneralRe: MFC dialog problem Pin
Ralph Varjabedian17-May-03 8:46
Ralph Varjabedian17-May-03 8:46 
GeneralRe: MFC dialog problem Pin
Beer17-May-03 12:03
Beer17-May-03 12:03 
GeneralWin32 dialogbox question. Pin
Anonymous17-May-03 1:55
Anonymous17-May-03 1:55 
Generalslider erorr Pin
aguest17-May-03 0:39
aguest17-May-03 0:39 
GeneralRe: slider erorr Pin
dabs17-May-03 3:10
dabs17-May-03 3:10 
GeneralRe: slider erorr Pin
Renjith Ramachandran17-May-03 7:16
Renjith Ramachandran17-May-03 7:16 
GeneralStrings, codepages and HTMLEncode Pin
dabs17-May-03 0:21
dabs17-May-03 0:21 
I've been studying the way Server.HTMLEncode works in ASP. Apparently, it encodes the ASCII characters differently depending on the codepage used. Thus, the ASCII char 210 (0xD2) is encoded as
  • Ê ( Ê ) using codepage 850 (OEM - Multilingual Latin I),
  • Ď ( Ď ) using codepage 852 (OEM - Latin II),
  • Φ ( Φ ) using codepage 869 (OEM - Modern Greek),
  • ز ( ز ) using codepage 1256 (ANSI - Arabic)
etc. My (first) question is: how does Server.HTMLEncode do that? Does it use MultiByteToWideChar or what? Is there an API function that does anything remotely similar to this? I haven't found it and honestly don't quite know where to look.

An my second question: I know I can use _setmbcp( ) to change the current codepage. Is it possible to do this on a per-tread basis - similar to ::SetTreadLocale( ) can change the LCID of the current thread?

Home someone (Read: Mike Dunn) can help me ...



Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
GeneralVisual C++ 6.0 Standard vs. Visual C++ 6.0 Professional Pin
Anonymous16-May-03 23:44
Anonymous16-May-03 23:44 
GeneralQuestion about memory allocation of data members of a class. Pin
George216-May-03 23:36
George216-May-03 23:36 
GeneralRe: Question about memory allocation of data members of a class. Pin
Vikram A Punathambekar17-May-03 1:27
Vikram A Punathambekar17-May-03 1:27 
GeneralRe: Question about memory allocation of data members of a class. Pin
George217-May-03 3:05
George217-May-03 3:05 
GeneralRe: Question about memory allocation of data members of a class. Pin
Vikram A Punathambekar17-May-03 3:21
Vikram A Punathambekar17-May-03 3:21 
GeneralRe: Question about memory allocation of data members of a class. Pin
George217-May-03 3:28
George217-May-03 3:28 
GeneralRe: Question about memory allocation of data members of a class. Pin
User 988517-May-03 11:40
User 988517-May-03 11:40 
GeneralRe: Question about memory allocation of data members of a class. Pin
George217-May-03 18:30
George217-May-03 18:30 
GeneralRe: Question about memory allocation of data members of a class. Pin
User 988517-May-03 11:43
User 988517-May-03 11:43 
GeneralRe: Question about memory allocation of data members of a class. Pin
Tim Smith17-May-03 1:41
Tim Smith17-May-03 1:41 
GeneralRe: Question about memory allocation of data members of a class. Pin
George217-May-03 3:08
George217-May-03 3:08 
Generalremoving a control and disable message during run-time Pin
yccheok16-May-03 21:22
yccheok16-May-03 21:22 
GeneralRe: removing a control and disable message during run-time Pin
valikac17-May-03 6:04
valikac17-May-03 6:04 
GeneralVisual C++ 6.0 - Rapid Application Development Pin
Anonymous16-May-03 20:46
Anonymous16-May-03 20:46 
GeneralGlobal static function Pin
Shah Shehpori16-May-03 18:53
sussShah Shehpori16-May-03 18:53 
GeneralRe: Global static function Pin
Neville Franks17-May-03 2:11
Neville Franks17-May-03 2:11 
Generalclass operators strange results Pin
Rui Dias Lopes16-May-03 16:52
Rui Dias Lopes16-May-03 16:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.