is_unicode_valid(Str) -> Bin = unicode:characters_to_binary(Str), if is_binary(Bin) -> true; true -> {false, Bin} end. Str can be binary or characters. -- Best regards, Uvarov Michael