hi
attached is a part that contains a simple text file with hebrew content
(important: please rename the attached to .zip and uncompress)

when i send it to decoding the following happens:
1) s :=DecodeBase64(FPartBody.Text); --> s contains the correct content in hebrew
2) if FConvertCharset and (FPrimaryCode =MP_TEXT) then --> true
3) if (not FForcedHTMLConvert) and (uppercase(FSecondary) = 'HTML') then --> false
4) s :=CharsetConversion(s, FCharsetCode, FTargetCharset); --> s contains = gibberish

the reason is that FCharsetCode is iso_8859_1, FTargetCharset is cp1255 which is correct
sure i can change the FCharsetCode, but according to what? in this case cp1255 should do the job
bcoz the content is already in hebrew, but it can be any other charset for that matter

what am i missing?
thanks

 hi
attached is a part that contains a simple text file with hebrew content
(important: please rename the attached to .zip and uncompress)

when i send it to decoding the following happens:
1) s :=DecodeBase64(FPartBody.Text); --> s contains the correct content in 
hebrew
2) if FConvertCharset and (FPrimaryCode =MP_TEXT) then --> true
3) if (not FForcedHTMLConvert) and (uppercase(FSecondary) = 'HTML') then --> 
false
4) s :=CharsetConversion(s, FCharsetCode, FTargetCharset); --> s contains = 
gibberish

the reason is that FCharsetCode is iso_8859_1, FTargetCharset is cp1255 which 
is correct
sure i can change the FCharsetCode, but according to what? in this case cp1255 
should do the job
bcoz the content is already in hebrew, but it can be any other charset for that 
matter

what am i missing?
thanks 

Attachment: part with attachment.txt
Description: Attached file: part with attachment.txt

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to