Re: [Pythonmac-SIG] Supplying Unicode strings to pyobjc

2022-04-10 Thread Ronald Oussoren via Pythonmac-SIG
> On 10 Apr 2022, at 09:23, Ben Byram-Wigfield via Pythonmac-SIG > wrote: > > I'm converting a lot of python2 scripts that use pyobjc to python3, and > having trouble getting them to work. The problem seems to relate to the > Unicode changes in python3. > > Something as simple as supplying

[Pythonmac-SIG] Supplying Unicode strings to pyobjc

2022-04-10 Thread Ben Byram-Wigfield via Pythonmac-SIG
I'm converting a lot of python2 scripts that use pyobjc to python3, and having trouble getting them to work. The problem seems to relate to the Unicode changes in python3. Something as simple as supplying a string to method like this: provider = CGDataProviderCreateWithFilename(filename) gives