Problem with non-ASCII characters in FilePathField in contrib.admin
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have a model including a FilePathField. The directory in question contains filenames with non-ASCII characters (on Linux). I have been trying to add entries for this model using the admin pages. I get a pull-down menu listing all available files, with the non-ASCII characters displayed correctly. I choose a filename containing non-ASCII characters, and the field value displays correctly. I try to submit the new object and it fails, with 'Select Valid Choice - xxxxx is not one of the available choices'. Filenames containing no non-ASCII characters work fine.