CharacterEncoderImplementations__ISO10646_to_UTF8.st
changeset 25271 3b763ce09c7e
parent 22474 f42c97c037ed
--- a/CharacterEncoderImplementations__ISO10646_to_UTF8.st	Wed Feb 19 16:17:53 2020 +0100
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF8.st	Wed Feb 19 16:18:04 2020 +0100
@@ -213,6 +213,17 @@
     "Modified (comment): / 17-01-2018 / 13:24:08 / stefan"
 ! !
 
+!ISO10646_to_UTF8 methodsFor:'testing'!
+
+isUtfEncoder
+    "answer true, if this encodes from/to any UTF (regardless of how many bytes and byte-order).
+     In other words: does it make sense to prepend a BOM"
+
+    ^ true
+
+    "Created: / 19-02-2020 / 16:16:35 / Stefan Reise"
+! !
+
 !ISO10646_to_UTF8 class methodsFor:'documentation'!
 
 version