t4ngo / dragonfly

ARCHIVED! - Speech recognition framework allowing powerful Python-based scripting and extension of Dragon NaturallySpeaking (DNS) and Windows Speech Recognition (WSR)
GNU Lesser General Public License v3.0
364 stars 82 forks source link

Fix UnicodeDecodeError when a Dictation element contains a word with an ... #8

Closed jgarvin closed 9 years ago

jgarvin commented 9 years ago

...accent, like saute.

There's 2 parts to this:

  1. First, dragonfly needs to specify that the encoding coming from Dragon is latin_1, not the default ascii. It also needs to use it when calling C module functions like getWordInfo.
  2. In couple places Unicode strings would degrade to regular strings whenever they touched regular strings because Python 2 does implicit conversions.
t4ngo commented 9 years ago

I fixed this recently. Please see #11 for details.