@@ -334,21 +334,21 @@ public static String GetActiveEncodingName()
334
334
Boolean hasBOM = document . SciControl . SaveBOM ;
335
335
if ( codepage == Encoding . UTF8 . CodePage )
336
336
{
337
- return GetLabelAsPlainText ( "Label.UTF8" , hasBOM ) ;
337
+ return GetLabelAsPlainText ( "Label.UTF8" , true , hasBOM ) ;
338
338
}
339
339
else if ( codepage == Encoding . UTF7 . CodePage )
340
340
{
341
- return GetLabelAsPlainText ( "Label.UTF7" , hasBOM ) ;
341
+ return GetLabelAsPlainText ( "Label.UTF7" , true , hasBOM ) ;
342
342
}
343
343
else if ( codepage == Encoding . BigEndianUnicode . CodePage )
344
344
{
345
- return GetLabelAsPlainText ( "Label.BigEndian" , hasBOM ) ;
345
+ return GetLabelAsPlainText ( "Label.BigEndian" , true , hasBOM ) ;
346
346
}
347
347
else if ( codepage == Encoding . Unicode . CodePage )
348
348
{
349
- return GetLabelAsPlainText ( "Label.LittleEndian" , hasBOM ) ;
349
+ return GetLabelAsPlainText ( "Label.LittleEndian" , true , hasBOM ) ;
350
350
}
351
- else return GetLabelAsPlainText ( "Label.8Bits" , false ) ;
351
+ else return GetLabelAsPlainText ( "Label.8Bits" , false , false ) ;
352
352
}
353
353
}
354
354
else return TextHelper . GetString ( "Info.Unknown" ) ;
@@ -357,9 +357,10 @@ public static String GetActiveEncodingName()
357
357
/// <summary>
358
358
/// Gets a label as plain text by removing the accelerator key
359
359
/// </summary>
360
- public static String GetLabelAsPlainText ( String name , Boolean hasBOM )
360
+ public static String GetLabelAsPlainText ( String name , Boolean unicode , Boolean hasBOM )
361
361
{
362
362
String label = TextHelper . GetString ( name ) . Replace ( "&" , "" ) ;
363
+ if ( unicode ) label = "Unicode (" + label . ToLower ( ) + ")" ;
363
364
return hasBOM ? label + " (BOM)" : label ;
364
365
}
365
366
0 commit comments