Jump to content

Problem with Russian "й" letter

Recommended Posts

Hi, guys!
I try to write my workflow for working with Lingualeo.com (it's Russian service for learning English ). 
Translating works well, but when I try to add a word and its translation to Lingualeo the letter "й" replace to the letter "и". I'm sure this problem in one of my python scripts because when I tried to hardcode translation with this "й" letter - it works fine. So it's not Lingualeo's API problem... 
The weird thing that in notification it works fine. 
I guess it's sort of automatic normalization or some problem with encoding but I'm just a beginner. I would be very grateful if you can help me solve this problem.

When I write instead of "words[1]" (this is translation) just string "йога" here https://github.com/PazzaVlad/alfred-lingualeo/blob/master/LinguaLeo%20Translate/addtodictionary.py#L24 - it works fine. Letter "Й" doesn't replace by letter "и". 

Edited by Silva

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...