SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Selenium IDE exports unsigned utf-8 files #5598

Open lukeis opened 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 5598

What steps will reproduce the problem?
1.record test actions targeting at a Chinese web page 
2.export test as ruby or python test files

What is the expected output? What do you see instead?
I expected to run the ruby/python tests successfully,however the test files seemed
to be with wrong encoding(utf-8 without BOM), some Chinese characters turned into gibberish,
and undoubtedly the tests failed.

Selenium version:
OS:Windows 8 x64
Browser:Mozilla Firefox
Browser version:20.0.1

I opened the test files which Selenium IDE exported with Notepad++, and found that
the files were encoded by "utf-8 without BOM", when I changed it to "utf-8 with BOM",
everything went fine.

Reported by nicolasloco on 2013-05-05 15:04:38

lukeis commented 8 years ago

Reported by barancev on 2013-05-05 21:27:39

lukeis commented 8 years ago
Hi,

Can you attach a zip file containing a sample test case and it exported version with
the correct BOM?

Cheers,
Samit Badle
Selenium IDE Maintainer
@samitbadle
http://blog.reallysimplethoughts.com/

Reported by Samit.Badle on 2013-07-01 17:56:34

lukeis commented 8 years ago
Hi, Samit,
The attachment below contains two test case files and an execution results screenshot.
The 'wronglyencodedtestcase.rb' was exported directly from Selenium IDE with the encoding
'UTF-8 without BOM', while the 'correctlyencodedtestcase.rb' was modified by changing
its encoding to 'Encode in UTF-8' in Notepad++.

Reported by nicolasloco on 2013-07-02 03:18:32


lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 17:45:11