Here's some hints.
1. Save your scripts in format UTF-8
2. Use .encode('UTF-8') with your input data strings or sources "sólo
está".encode('UTF-8').
2-1. In some cases I've had to encode twice as
sString.encode('UTF-8').encode('UTF-8').
3. add #encoding: UTF-8 as the first line of the script
4. Examine the HTML page. Does the header section contain a meta command
for charset-utf-8
Regards
On Sunday, December 7, 2014 5:28:14 AM UTC-6, Alberto Magalhães wrote:
>
> Hi,
>
> *We're having trouble with tests that enter UTF-8 characters into a **text
> field.*
> *When we do: **browser.text_field(:name, "first_name").set("sólo está")*
>
> What ends up in the text field is "slo est" (omitting the special
> *characters).*
>
> *Or when we display some fields, for example, "Nº Contribuinte' it's
> display '**Nº Contribuinte'*
>
> *thanks in advance*
> *Alberto*
>
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.