Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
87f8b692
Commit
87f8b692
authored
Feb 26, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add small encoding test
parent
d044212d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
test/tests/unicode_test.py
test/tests/unicode_test.py
+9
-0
No files found.
test/tests/unicode_test.py
View file @
87f8b692
...
...
@@ -32,3 +32,12 @@ try:
hasattr
(
object
(),
u"
\
u0180
"
)
except
UnicodeEncodeError
as
e
:
print
e
def
p
(
x
):
return
[
hex
(
ord
(
i
))
for
i
in
x
]
s
=
u"
\
u20AC
"
# euro sign
print
p
(
s
)
print
p
(
s
.
encode
(
"utf8"
))
print
p
(
s
.
encode
(
"utf16"
))
print
p
(
s
.
encode
(
"utf32"
))
print
p
(
s
.
encode
(
"iso_8859_15"
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment