Skip to content

String from print() comes as Unicode while from raise Exception() as AnsiString #465

Answered by pyscripter
zloozle asked this question in Q&A
Discussion options

You must be logged in to vote

I have not tested but you need to specify a UTF8 encoding in

Script.LoadFromFile(aFileName);

and

TInputOutputStub.Output.SaveToFile('c:\Devel\tmp\PythonSample\sample.out')

Replies: 8 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@zloozle
Comment options

@pyscripter
Comment options

@zloozle
Comment options

@pyscripter
Comment options

@zloozle
Comment options

Answer selected by pyscripter
Comment options

You must be logged in to vote
2 replies
@zloozle
Comment options

@pyscripter
Comment options

Comment options

You must be logged in to vote
6 replies
@pyscripter
Comment options

@zloozle
Comment options

@pyscripter
Comment options

@pyscripter
Comment options

@zloozle
Comment options

Comment options

You must be logged in to vote
1 reply
@pyscripter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants