Comments (4)
The important part of the error is: "UnicodeDecodeError: 'ascii' codec can't decode". We need to know why the ascii codec is used for Unicode/UTF-8.
If this still is a problem for you, please attach the xml file causing the error.
from android2po.
It seems I cannot attach an XML file here, but a very simple input file will do already:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="blabla">just some bla\u00a0bla</string>
</resources>
I am simply running a2po export --android . --gettext locale
with python 2.7.12.
from android2po.
I tested on Python 3 and couldn't reproduce the issue - it just worked. I don't have time to look at this for Python 2.
PS! You cant use "\u00a0" inside the XML file, but I just replaced it with an actual non-breaking space.
from android2po.
I had a similar problem with unicode escapes. I did not get a crash, but instead all strings with unicode escape were being omitted. Based on this thread I installed android2po again using my python3 binaries and the problem went away.
from android2po.
Related Issues (20)
- Babel-1.0dev isn't installable because "elsdoerfer.name" is down HOT 4
- crash on UTF-8 characters HOT 3
- Travis CI builds are not being built HOT 3
- a2po does not support ISO 639-2 language codes HOT 7
- KeyError: 'plural_form' HOT 1
- 'pip install android2po' is missing termcolor module
- [improvement] Add option to ignore strings that have the translatable="false" HOT 2
- android resource files with hyphens in filename
- line wrapping width system dependent HOT 3
- Locales: id, he, yi -> in, iw, ji HOT 4
- fy-NL is not a valid locale HOT 2
- Automate releases
- Don't mark formated strings as c-format HOT 7
- n/a
- Not emitting empty items in string-array HOT 1
- Cannot process <item>\?</item>
- [feature request] Support for iOS
- wrong issue
- Port to Python3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android2po.