Jump to content

Script filter breaks on some unicode characters


Recommended Posts

For example

<items>
<item>
<title>a – dash</title>
</item>
</items>

Shouldn't every character except <, > and & be accepted in XML? If not, how should I be escaping these?

 

Thanks

 

EDIT: Apologies, it was a python 3 issue (LANG environment variable not set inside Alfred).

 

But where do the scripts run in script filter get their environment variables from?

Edited by 315234
Link to comment

For example

<items>
<item>
<title>a – dash</title>
</item>
</items>

Shouldn't every character except <, > and & be accepted in XML? If not, how should I be escaping these?

 

Thanks

 

EDIT: Apologies, it was a python 3 issue (LANG environment variable not set inside Alfred).

 

But where do the scripts run in script filter get their environment variables from?

 

Alfred doesn't import your profile when running scripts so you would need to take precautions when working on items that require the use of environment variables

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...