Skip to content

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

Answered by pyscripter
MKostitsyn asked this question in Q&A

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

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
0 replies

You must be logged in to vote
5 replies
@MKostitsyn

@pyscripter

@MKostitsyn

@pyscripter

@MKostitsyn

Answer selected by pyscripter

You must be logged in to vote
2 replies
@MKostitsyn

@pyscripter

You must be logged in to vote
6 replies
@pyscripter

@MKostitsyn

@pyscripter

@pyscripter

@MKostitsyn

You must be logged in to vote
1 reply
@pyscripter

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