EuGeNe Van den Bulke <[EMAIL PROTECTED]> wrote:
> Duncan Booth wrote:
>> However, the decoded text looks as though it is utf16 encoded so it
>> should be written as binary. i.e. the output mode should be "wb".
>
> Thanks for the "wb" tip that works (see bellow). I guess it is
> experience based
Duncan Booth wrote:
> However, the decoded text looks as though it is utf16 encoded so it should be
> written as binary. i.e.
> the output mode should be "wb".
Thanks for the "wb" tip that works (see bellow). I guess it is
experience based but how could you tell that it was utf16 encoded?
> S
EuGeNe Van den Bulke <[EMAIL PROTECTED]> wrote:
> >>> import base64
> >>> base64.decode(file("hebrew.b64","r"),file("hebrew.lang","w"))
>
> It runs but the result is not correct: some of the lines in hebrew.lang
> are correct but not all of them (hebrew.expected.lang is the correct
> file). I g