According to YAML 1.2 spec, section "5.7. Escaped Characters":
http://www.yaml.org/spec/1.2/spec.html#id2776092
there are a number of escape sequences supported in YAML.
In jyaml/src/org/ho/yaml/Utilities.java:
There is only support for a few of the escape sequences,
For example, the \x, \u, \U sequence are noticibly missing.
public static String unescape(String text){
if (text == null) return null;
StringBuffer sb = new StringBuffer(text.length());
for (int i = 0; i < text.length(); i++){
char c = text.charAt(i);
if (c == '\\' && i != text.length() - 1){
char d = text.charAt(i + 1);
switch(d){
case 'b':
sb.append('\b');
break;
case '0':
sb.append('\0');
break;
case 't':
sb.append('\t');
break;
case 'n':
sb.append('\n');
break;
case '"':
sb.append('"');
break;
case '\\':
sb.append('\\');
break;
default:
sb.append(("" + c) + d);
}
i++;
}else
sb.append(c);
}
return sb.toString();
}