mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
change ? to ^
This commit is contained in:
parent
f7cb43f363
commit
e0547aaebf
@ -69,7 +69,7 @@ class AbstractFileChunk {
|
|||||||
// Given a byte array, filter out all occurances non-characters
|
// Given a byte array, filter out all occurances non-characters
|
||||||
// http://unicode.org/cldr/utility/list-unicodeset.jsp?a=[:Noncharacter_Code_Point=True:]
|
// http://unicode.org/cldr/utility/list-unicodeset.jsp?a=[:Noncharacter_Code_Point=True:]
|
||||||
// and non-printable control characters except tabulator, new line and carriage return
|
// and non-printable control characters except tabulator, new line and carriage return
|
||||||
// and replace them with the question mark character (?)
|
// and replace them with the character (^)
|
||||||
private static byte[] sanitize(byte[] input) {
|
private static byte[] sanitize(byte[] input) {
|
||||||
Charset charset = Charset.forName("UTF-8"); // NON-NLS
|
Charset charset = Charset.forName("UTF-8"); // NON-NLS
|
||||||
String inputString = new String(input, charset);
|
String inputString = new String(input, charset);
|
||||||
@ -80,7 +80,7 @@ class AbstractFileChunk {
|
|||||||
if (charIsValidSolrUTF8(ch)) {
|
if (charIsValidSolrUTF8(ch)) {
|
||||||
sanitized.append(ch);
|
sanitized.append(ch);
|
||||||
} else {
|
} else {
|
||||||
sanitized.append("?"); // NON-NLS
|
sanitized.append('^'); // NON-NLS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user