Ticket #124 (new defect)

Opened 5 years ago

Last modified 44 years ago

setting allow_unicode

Reported by:… Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:


The theme of default escaping of Unicode chars on dumping has been discussed, e.g. here [1]. I understand the point you decided for the more conservative approach - escape by defaut. Still. The escaped files are uneditable by humans - the fact that completely kills the purpose of yaml. Any software that uses pyuaml generates such unusable files.

My proposal to minimize this pain: allow the allow_unicode flag to be settable also from "outside", e.g. environment variable, or any sort of global setting. Thus any software that uses pyyaml can be used without patching.

Please mention this unicode dumping problem also in the documentation.

[1] -



Add a comment

Modify Ticket

Change Properties
<Author field>
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.