yowsup icon indicating copy to clipboard operation
yowsup copied to clipboard

unicode message

Open Narendra-Kumar opened this issue 11 years ago • 2 comments

hiii

how to send multilanguage message using yowsup command line tool??????

Narendra-Kumar avatar Jun 04 '15 13:06 Narendra-Kumar

as far as i know input is UTF-8 compatible.. Which i suppose should be enough for multilanguage

dedmen avatar Jun 04 '15 17:06 dedmen

Make sure that: # -*- coding utf-8 -*- is the first line of your layer.py (and wherever there's multilanguage letters within the code)

This should fix if you're getting SyntaxError: Non-ASCII '\x**' in file ***.py on line *** but no encoding declared

If you're getting something like: UnicodeEncodeError: 'ascii' codec can't encode character u'\x**' in position **: ordinal not in range (128), then it means you're sending a unicode string that contains multilanguage letters, so you need to encode it, like so:

my_string = my_string.encode('utf8')

Dl0tt avatar Jun 06 '15 15:06 Dl0tt