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

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to