Added Validate warning for Windows-1252 chars outside ASCII
This commit is contained in:
parent
474aeb8830
commit
e05e0347d3
1 changed files with 9 additions and 1 deletions
|
@ -308,7 +308,15 @@ public class ModUtilities {
|
||||||
if ( decodeResult.bom != null ) {
|
if ( decodeResult.bom != null ) {
|
||||||
pendingMsgs.add( new ReportMessage(
|
pendingMsgs.add( new ReportMessage(
|
||||||
ReportMessage.WARNING,
|
ReportMessage.WARNING,
|
||||||
String.format( "%s BOM detected. (ascii is safest)", decodeResult.encoding )
|
String.format( "%s BOM detected. (ASCII is safest)", decodeResult.encoding )
|
||||||
|
) );
|
||||||
|
modValid = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( decodeResult.encoding.equalsIgnoreCase( "windows-1252" ) ) {
|
||||||
|
pendingMsgs.add( new ReportMessage(
|
||||||
|
ReportMessage.WARNING,
|
||||||
|
String.format( "Fancy %s chars. (UTF-8 is recommended for that)", decodeResult.encoding )
|
||||||
) );
|
) );
|
||||||
modValid = false;
|
modValid = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue