-
Notifications
You must be signed in to change notification settings - Fork 21
Can't encode character u'\xf6' #1
Comments
PS: If I do change all the Umlauts to their written out expression (ä > ae, ö > oe, etc.), then the script works :) |
Hey David, Thanks for reporting, I’ll look into it! I’ve used lots of umlauts aswell (chats in Swedish), but I don’t remember having issues with them. Any chance you could try running wa2latex with Python 3? And could you upload a sample snippet that causes the error? |
Running the command below with
gives me
That's why I tried with Python2 :) |
What’s the encoding of your txt file? |
I’ve tried under Linux (at work), where I don’t have access to the file now.
|
What happens if you do
or perhaps even better
(if you’re in German speaking Switzerland) and then run wa2python.py with python2? |
If I export the Swiss german variables on OS X, then I get the same error as on Linux
|
Running wa2latex.py on a file containing åäöÅÄÖ works with Python 2.7.10 on macOS 10.11.5. Any chance you could send me a sample of your chatlog? It’s hard for me to debug without proper (non-working 😄) data. |
I just sent the file to the email address in your GitHub profile. |
I tried running wa2latex with your chat log, and it worked without any issues on macOS with Python 2.7. I’ll be traveling abroad next week, but I can hopefully figure something out when I’m back. |
Guys, I have the same problem on Ubuntu 16.04 with Python 2.7.12, LANG and LC_ALL both set to en_US.UTF-8 and the chat history being in UTF-8 (text contains Swiss German characters as well). Traceback (most recent call last): Also, the section markers create sometimes correct ones: I checked the file with a hex editor and found out, that if there's a 0x200A before the new line/word, it gets a section marker with words, before other new lines there is a 0x0D0A and it parses the date correctly. |
Hey @pbeck Similiar to @habi, I was able to make it work by
However, the issue with new lines not starting with dates, and therefore creating arbitrary section markers remained even after that. If you're rewriting it anyway, could you also add a function to optionally include the timestamp as well? Thank you very much, really looking forward to it and let me know if I can provide further help, i.e. by testing it! :) Cheers! |
hi I am facing a similar issue as lasrerjay "However, the issue with new lines not starting with dates, and therefore creating arbitrary section markers remained even after that." Any leads how to solve that? |
@bakshi-varun Maybe laserjays latest comment might help? |
Whenever I run
wa2latex.py
(Ubuntu 16.04, Python 2.7.12 (Anaconda custom (64-bit))), I get the errorfrom line 169 of the script.
I suppose this could be because I'm using a german chat lot with lots of Umlauts and
ö
corresponds to an ö...Is there any way I can make a book from my chat log (except changing all Umlauts)?
The text was updated successfully, but these errors were encountered: