Errors with special character when accessing Python

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

hfc
Posts: 2
Joined: Mon Jun 16, 2025 6:21 am

Errors with special character when accessing Python

Postby hfc » Mon Jun 16, 2025 6:53 am

Hi,

I'm using EViews 14 (Enterprise Edition-Jun 9 2025 Build). After accessing Python (3.13) using the xopen(p) command, if I try to assign a string with a special character (e.g. a nordic letter "ä") to a Python object I get the error "Unknown Python Error". For example, the command xrun(p) a = 'ä' gives an error while using a similar command on a standard character (xrun(p) a = 'a') works fine.

I'm guessing this has something to do with encoding? Is there any way to fix this issue?

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Errors with special character when accessing Python

Postby EViews Steve » Wed Jun 18, 2025 4:47 pm

try using the unicode code point value instead:
Screenshot 2025-06-18 at 4.45.41 PM.png
Screenshot 2025-06-18 at 4.45.41 PM.png (8.29 KiB) Viewed 223182 times
Steve

hfc
Posts: 2
Joined: Mon Jun 16, 2025 6:21 am

Re: Errors with special character when accessing Python

Postby hfc » Fri Jul 04, 2025 6:47 am

Thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests