Closed C06A closed 11 months ago
@C06A see linked pull request: I cannot reproduce the issue in unit tests. Could you please provide more details or better a test that would demonstrate the bug?
Here is the simple test:
@Test
public void simpleCyrilicTest() {
String s = new URITemplate("{+cyrillic}")
.expand( "cyrillic", "АБВГДЕйка")
.toString();
assertEquals("%D0%90%D0%91%D0%92%D0%93%D0%94%D0%95%D0%B9%D0%BA%D0%B0", s);
}
which results in:
org.opentest4j.AssertionFailedError:
Expected :%D0%90%D0%91%D0%92%D0%93%D0%94%D0%95%D0%B9%D0%BA%D0%B0
Actual :АБВГДЕйка
<Click to see difference>
Fixed in version 2.0.0
According to RFC-6570 the only unencoded characters are from unreserved set and in case of Reserved and Fragment Expansions -- also from reserved set. I try to use Cyrillic chars in the values and they are not pct-encoded.