Connaît-tu l'encodage de tes fichiers sources ?
Tu penses que é es une interjection néerlandaise courante ?
Tu modifies un fichier contenant des erreurs d'encodage ?
Tu ne voit pas le rapport entre un problème d'encodage et une faille de sécurité ?
| class Java8MethodRef { | |
| interface Equality1 { | |
| boolean eq(Object a); | |
| } | |
| interface Equality2 { | |
| boolean eq(Object a, Object b); | |
| } |
| import org.junit.Test; | |
| import static org.assertj.core.api.Assertions.assertThat; | |
| public class StringTest { | |
| @Test | |
| public void empty_regex_on_empty_char() { | |
| assertThat("".split("")).isEqualTo(new String[]{""}); | |
| } |
| #!/bin/bash | |
| # Validates utf-8 input | |
| function uu() { | |
| iconv --from-code=utf-8 --to-code=utf-8 | |
| } | |
| # Converts UTF-8 -> ISO-8859-1 | |
| function ui() { | |
| iconv --from-code=utf-8 --to-code=iso-8859-1 |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.example</groupId> | |
| <artifactId>example-app</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> |
| #!/bin/bash | |
| function uw() { | |
| iconv --from-code=utf8 --to-code=windows-1252 | |
| } | |
| function wu() { | |
| iconv --from-code=windows-1252 --to-code=utf8 | |
| } |