void () { byte[] test = "test".getBytes(StandardCharsets.UTF_8); assertThat(URLUtil.getBytesFromDataUri("data:text/plain;charset=utf-8;base64,dGVzdA==")).isEqualTo(test); // https://youtrack.jetbrains.com/issue/WEB-14581#comment=27-1014790 assertThat(URLUtil.getBytesFromDataUri("data:text/plain;charset:utf-8;base64,dGVzdA==")).isEqualTo(test); }