开发者

Google App Engine non-latin names for files&folders?

开发者 https://www.devze.com 2023-03-28 11:52 出处:网络
I need to have cyrillic file and folder names. Example /запись/Index.html But开发者_StackOverflow中文版 i\'m getting error when accessing these files. It says that GAE couldn\'t find them. I rea

I need to have cyrillic file and folder names. Example /запись/Index.html But开发者_StackOverflow中文版 i'm getting error when accessing these files. It says that GAE couldn't find them. I really think it is because encoding. But doesn't GAE support UTF8?


Different operating systems store filenames in different ways. In Linux, filenames are uninterpreted byte strings, while in Windows they are unicode strings. This means that cross-platform compatibility with unicode filenames are tough.

The easiest way around this is to stick to names that are representable in both - eg, the lower 128 codepoints. You don't need cyrillic filenames, because the filenames are an internal detail of your app. You can serve any file you want under any URL path you want, independent of where it's stored, or if it's dynamic or static.

0

精彩评论

暂无评论...
验证码 换一张
取 消