Skip to content

Commit

Permalink
Fix text encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmrcka committed Aug 19, 2021
1 parent 3e22e63 commit 01d894d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
public class MultipartResourceIT {

private static final String IMAGE_FILE_NAME = "/quarkus.png";
private static final String TEXT_WITH_DIACRITICS = "Přikrášlený žloťoučký kůň úpěl ďábelské ódy.";
private static final byte[] TEXT_WITH_DIACRITICS_BYTES = new byte[] { 80, -59, -103, 105, 107, 114, -61, -95, -59, -95, 108,
101, 110, -61, -67, 32, -59, -66, 108, 111, -59, -91, 111, 117, -60, -115, 107, -61, -67, 32, 107, -59, -81, -59,
-120, 32, -61, -70, 112, -60, -101, 108, 32, -60, -113, -61, -95, 98, 101, 108, 115, 107, -61, -87, 32, -61, -77,
100, 121, 46 };
// "Přikrášlený žloťoučký kůň úpěl ďábelské ódy."
private static final String TEXT_WITH_DIACRITICS = new String(TEXT_WITH_DIACRITICS_BYTES, StandardCharsets.UTF_8);
private static byte[] randomBytes = new byte[120];
private static File imageFile;
private static byte[] imageBytes;
Expand Down

0 comments on commit 01d894d

Please sign in to comment.