<div dir="ltr">Hi Ara,<br><br>I have fixed this issue, will check in the code by end of day. If you still face this issue, please send us the test script to verify and fix at our end.<br><br>I tried something like this<br>
<br>settextvalue ('*-gedit', 'txt0', 'C:\薔薇\ソ\表') and this worked for me.<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Thu, Jul 31, 2008 at 2:38 AM, Ara Pulido <span dir="ltr"><<a href="mailto:ara@ubuntu.com">ara@ubuntu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello all,<br>
<br>
I am trying to write a script that will open a Gedit session, will write<br>
some japanese chracters, will save and it will be compared to an already<br>
saved file.<br>
<br>
The same test using ascii characters works neatly, but in this case I<br>
always get this error:<br>
<br>
Traceback (most recent call last): File "/usr/bin/ldtprunner", line<br>
424, in executescript execfile (scriptname, scriptglobal) File<br>
"gedit_chains.py", line 24, in <module> test.write_text(chain) File<br>
"/usr/lib/python2.5/site-packages/ubuntutesting/ubuntu.py", line 138, in<br>
write_text Application.write_text(self, text,<br>
ubuntu_constants.GE_TXT_FIELD) File<br>
"/usr/lib/python2.5/site-packages/ubuntutesting/ubuntu.py", line 118, in<br>
write_text app_txt_field.settextvalue(text) File<br>
"/var/lib/python-support/python2.5/ooldtp.py", line 453, in settextvalue<br>
return ldtp.settextvalue (self.__window, self.getName (''), args [0])<br>
File "/var/lib/python-support/python2.5/ldtp.py", line 805, in<br>
settextvalue _message = generatexml (command.SETTEXTVALUE, _requestId,<br>
windowName, componentName, text) File<br>
"/var/lib/python-support/python2.5/ldtp.py", line 84, in generatexml<br>
_argDebug += ", " + str (args [index]) UnicodeEncodeError: 'ascii' codec<br>
can't encode characters in position 27-30: ordinal not in range(128)<br>
<br>
I have tried encoding that, but finally ldtp library always tries to<br>
encode that to ascii.<br>
<br>
Have you managed to get such a test running successfully?<br>
<br>
Thanks,<br>
Ara.<br>
<br>
_______________________________________________<br>
LDTP-dev mailing list<br>
<a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop (GUI Application) Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br><a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a><br>
</div>