Skip to content

Commit

Permalink
Fix encoding issue with unicode + csharpier 0.28+ (#1233)
Browse files Browse the repository at this point in the history
closes #1232
  • Loading branch information
belav authored Apr 19, 2024
1 parent 9cfaed2 commit 4282d01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Src/CSharpier.Rider/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# csharpier-rider Changelog

## [1.7.1]
- Fix unicode issue with csharpier 0.28.0+

## [1.7.0]
- Fix deprecated function warning
- Use CSharpier Http Server for 0.28.0+
Expand Down
2 changes: 1 addition & 1 deletion Src/CSharpier.Rider/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.intellij.csharpier
pluginName = csharpier
pluginVersion = 1.7.0
pluginVersion = 1.7.1

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public FormatFileResult formatFile(FormatFileParameter parameter) {
return null;
}

InputStreamReader reader = new InputStreamReader(connection.getInputStream());
InputStreamReader reader = new InputStreamReader(connection.getInputStream(), "UTF-8");
var result = gson.fromJson(reader, FormatFileResult.class);
reader.close();

Expand Down

0 comments on commit 4282d01

Please sign in to comment.