Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Support different encodings #60

Closed
aslakhellesoy opened this issue Jul 30, 2015 · 0 comments
Closed

Support different encodings #60

aslakhellesoy opened this issue Jul 30, 2015 · 0 comments

Comments

@aslakhellesoy
Copy link
Contributor

Cucumber-Ruby and Cucumber-JVM currently supports this:

# encoding: iso-8859-1

We should build support for this into Gherkin3 too I think. If a File object is passed in - read it first as UTF-8. Look for the header, and if it's present and not UTF-8, read the file again with the specified encoding.

The current implementations are here:

https://github.com/cucumber/gherkin/blob/master/lib/gherkin/lexer/encoding.rb
https://github.com/cucumber/gherkin/blob/master/java/src/main/java/gherkin/lexer/Encoding.java

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant