Merge pull request #830 from edx/jkarni/fix/unicode-import
Fix import errors with unicode filenames
This commit is contained in:
1
common/test/data/test_unicode/about/end_date.html
Normal file
1
common/test/data/test_unicode/about/end_date.html
Normal file
@@ -0,0 +1 @@
|
||||
TBD
|
||||
8
common/test/data/test_unicode/chapter/simple_html.xml
Normal file
8
common/test/data/test_unicode/chapter/simple_html.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<chapter display_name="åñ html ƒile">
|
||||
<sequential display_name="åñ html ƒile">
|
||||
<html display_name="åñ html ƒile">
|
||||
<p> This is upside down text:</p>
|
||||
<p>˙ʇxəʇ uʍop əpısdn sı sıɥʇ</p>
|
||||
</html>
|
||||
</sequential>
|
||||
</chapter>
|
||||
1
common/test/data/test_unicode/course.xml
Normal file
1
common/test/data/test_unicode/course.xml
Normal file
@@ -0,0 +1 @@
|
||||
<course org="edX" course="test_unicode" url_name="2012_Fall"/>
|
||||
8
common/test/data/test_unicode/course/2012_Fall.xml
Normal file
8
common/test/data/test_unicode/course/2012_Fall.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<course>
|
||||
<chapter display_name="Overview">
|
||||
<video url_name="Welcome" youtube_id_1_0="p2Q6BrNhdh8" display_name="Welcome"/>
|
||||
</chapter>
|
||||
<chapter url_name="sîmple_√ideo"/>
|
||||
<chapter url_name="simple_html"/>
|
||||
<chapter url_name="vertical_container"/>
|
||||
</course>
|
||||
23
common/test/data/test_unicode/policies/2012_Fall.json
Normal file
23
common/test/data/test_unicode/policies/2012_Fall.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"course/2012_Fall": {
|
||||
"graceperiod": "2 days 5 hours 59 minutes 59 seconds",
|
||||
"start": "2015-07-17T12:00",
|
||||
"display_name": "Üñîçø∂e †es† Course",
|
||||
"graded": "true",
|
||||
"tabs": [
|
||||
{"type": "courseware"},
|
||||
{"type": "course_info", "name": "Course Info"},
|
||||
{"type": "static_tab", "url_slug": "syllabus", "name": "ßyllabus"},
|
||||
{"type": "static_tab", "url_slug": "resources", "name": "®esources"},
|
||||
{"type": "discussion", "name": "∂iscussion"},
|
||||
{"type": "wiki", "name": "∑iki"},
|
||||
{"type": "progress", "name": "πrogress"}
|
||||
]
|
||||
},
|
||||
"chapter/Overview": {
|
||||
"display_name": "O√erview"
|
||||
},
|
||||
"video/Welcome": {
|
||||
"display_name": "Welcome"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
<sequential>
|
||||
<vertical filename="vertical_test" slug="vertical_test" />
|
||||
<html slug="unicode">…</html>
|
||||
</sequential>
|
||||
10
common/test/data/test_unicode/static/unicø∂é.txt
Normal file
10
common/test/data/test_unicode/static/unicø∂é.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
Upside down unicode text (http://www.sunnyneo.com/upsidedowntext.php?)
|
||||
|
||||
˙ʇʇɐld uoɯəl plos əɥs ˙pəʌıl əuɹʎq ʎʇʇəq əɹəɥʍ pɐoɹ əɥʇ uʍop əɯɐɔ ʍoɔ-ooɯ əɥʇ
|
||||
˙ooʞɔnʇ ʎqɐq sɐʍ əɥ ˙əɔɐɟ ʎɹıɐɥ ɐ pɐɥ əɥ :ssɐlƃ ɐ ɥƃnoɹɥʇ ɯıɥ ʇɐ pəʞool ɹəɥʇɐɟ
|
||||
sıɥ :ʎɹoʇs ʇɐɥʇ ɯıɥ ploʇ ɹəɥʇɐɟ sıɥ
|
||||
|
||||
˙˙˙ooʞɔnʇ ʎqɐq pəɯɐu ʎoq əlʇʇıl suəɔıu ɐ ʇəɯ pɐoɹ əɥʇ ƃuolɐ uʍop ƃuıɯoɔ sɐʍ ʇɐɥʇ
|
||||
ʍoɔ-ooɯ sıɥʇ puɐ pɐoɹ əɥʇ ƃuolɐ uʍop ƃuıɯoɔ ʍoɔ-ooɯ ɐ sɐʍ əɹəɥʇ sɐʍ ʇı əɯıʇ pooƃ
|
||||
ʎɹəʌ ɐ puɐ əɯıʇ ɐ uodn əɔuo
|
||||
1
common/test/data/test_unicode/tabs/®esources.html
Normal file
1
common/test/data/test_unicode/tabs/®esources.html
Normal file
@@ -0,0 +1 @@
|
||||
<div>resources!</div>
|
||||
3
common/test/data/test_unicode/vertical/vertical_test.xml
Normal file
3
common/test/data/test_unicode/vertical/vertical_test.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<vertical>
|
||||
<video url_name="separate_file_video"/>
|
||||
</vertical>
|
||||
Reference in New Issue
Block a user