Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help in using PtInRegion Pin
swerajan10-Oct-03 9:41
swerajan10-Oct-03 9:41 
GeneralRe: help in using PtInRegion Pin
Terry O'Nolley10-Oct-03 12:41
Terry O'Nolley10-Oct-03 12:41 
GeneralProblem w/ CWnd::OnKeydown Pin
De Nardis Andrea10-Oct-03 5:29
De Nardis Andrea10-Oct-03 5:29 
GeneralRe: Problem w/ CWnd::onkeydown Pin
Steve S10-Oct-03 6:00
Steve S10-Oct-03 6:00 
GeneralFloating point calculation Pin
act_x10-Oct-03 4:53
act_x10-Oct-03 4:53 
GeneralRe: Floating point calculation Pin
David Crow10-Oct-03 5:45
David Crow10-Oct-03 5:45 
GeneralRe: Floating point calculation Pin
Chris Richardson10-Oct-03 14:58
Chris Richardson10-Oct-03 14:58 
QuestionCharacter encoding: Is this possible? Pin
Uwe Keim10-Oct-03 4:41
sitebuilderUwe Keim10-Oct-03 4:41 
I'm trying the following with an MFC application (compiled in UNICODE mode, if necessary):

1. Open a local HTML document and read into memory.
2. Do some modifications to the in-memory-document (e.g. replace some strings by other strings).
3. Write the document back to disk.

Now the cavats are: The code should be able to handle documents with different character encodings, e.g. UTF-8, Windows, Cyrillic, Chinese, etc.

Question:

Is anyone aware of methods to detect the encoding and to read in the file from the encoding and convert it to in-memory unicode?

I already looked at http://oss.software.ibm.com/icu/ [^], which can do the loading, but not with auto-detected encoding.


Smile | :) Thanks for your help! Smile | :)

--
- Free Windows-based CMS: www.zeta-software.de/enu/producer/freeware/download.html
- See me: www.magerquark.de


AnswerRe: Character encoding: Is this possible? Pin
Andreas Saurwein10-Oct-03 6:05
Andreas Saurwein10-Oct-03 6:05 
GeneralRe: Character encoding: Is this possible? Pin
Uwe Keim11-Oct-03 1:07
sitebuilderUwe Keim11-Oct-03 1:07 
AnswerRe: Character encoding: Is this possible? Pin
Navin10-Oct-03 10:46
Navin10-Oct-03 10:46 
GeneralRe: Character encoding: Is this possible? Pin
Uwe Keim11-Oct-03 1:07
sitebuilderUwe Keim11-Oct-03 1:07 
AnswerRe: Character encoding: Is this possible? Pin
Uwe Keim11-Oct-03 1:28
sitebuilderUwe Keim11-Oct-03 1:28 
GeneralCannot add new member Pin
Deepak Samuel10-Oct-03 4:30
Deepak Samuel10-Oct-03 4:30 
GeneralRe: Cannot add new member Pin
valikac10-Oct-03 5:22
valikac10-Oct-03 5:22 
GeneralChange of Title Bar's Caption Pin
Jackson Antony10-Oct-03 4:28
Jackson Antony10-Oct-03 4:28 
GeneralRe: Change of Title Bar's Caption Pin
HENDRIK R10-Oct-03 4:41
HENDRIK R10-Oct-03 4:41 
GeneralRe: Change of Title Bar's Caption Pin
valikac10-Oct-03 5:24
valikac10-Oct-03 5:24 
GeneralRe: Change of Title Bar's Caption Pin
Jackson Antony10-Oct-03 14:56
Jackson Antony10-Oct-03 14:56 
GeneralRe: Change of Title Bar's Caption Pin
Anthony_Yio10-Oct-03 23:10
Anthony_Yio10-Oct-03 23:10 
GeneralForcing redraw to include non-client areas Pin
srev10-Oct-03 4:06
srev10-Oct-03 4:06 
GeneralRe: Forcing redraw to include non-client areas Pin
HENDRIK R10-Oct-03 4:39
HENDRIK R10-Oct-03 4:39 
GeneralRe: Forcing redraw to include non-client areas Pin
srev10-Oct-03 5:30
srev10-Oct-03 5:30 
QuestionHow to change the color and title of AfxmessageBox Pin
Deepak Samuel10-Oct-03 4:06
Deepak Samuel10-Oct-03 4:06 
AnswerRe: How to change the color and title of AfxmessageBox Pin
HENDRIK R10-Oct-03 4:36
HENDRIK R10-Oct-03 4:36 

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.