No worries about contatenating String in a loop if the buffer does not grow.
import org.junit.Test;
// java 8
public class StringConcatLoopTest {TOUT texte que vous pouvez voir dans une fenêtre Emacs fait toujours partie d'un tampon.
| #!/bin/bash | |
| function uw() { | |
| iconv --from-code=utf8 --to-code=windows-1252 | |
| } | |
| function wu() { | |
| iconv --from-code=windows-1252 --to-code=utf8 | |
| } |
| <?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 | |
| # 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 |