UTF-16 encoded file error

5 views
Skip to first unread message

olp...@umsystem.edu

unread,
Nov 16, 2022, 12:28:56 PM11/16/22
to chibolts
When converting a file from TextGrid to CHAT this error message has popped up: 
"CLAN can't read UTF-16 encoded files: SUB2400145_24mo.TextGrid"

I am not sure how to go about fixing this or determining what this error message means. Wondering if anyone knows?

Brian Macwhinney

unread,
Nov 16, 2022, 12:32:58 PM11/16/22
to ChiBolts
Dear OLPMBR,
I would love to respond to this question, but as moderator of ChiBolts, I would also like to encourage people to sign their messages, so we know how to address them in replies.
Also, when you have a problem with a specific file, it can help to attach an example of the problem file to the email so we can see the problem most clearly. In this case, it would be the TextGrid input file.

Best,

— Brian MacWhinney
Teresa Heinz Professor of Cognitive Psychology,
Language Technologies and Modern Languages, CMU
> --
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/b2d72c25-5df5-4352-a3f2-77261a95d7c7n%40googlegroups.com.

Leonid Spektor

unread,
Nov 16, 2022, 12:47:14 PM11/16/22
to ChiBolts
Hi,

It looks like Praat is now saving its datafile using Unicode UTF-16 encoding. CLAN expects Unicode UTF-8 encoding of text files. You can use CLAN command "cp2utf SUB2400145_24mo.TextGrid" to convert your TextGrid file to Unicode UTF-8 and then the rest of the CLAN will be able to convert your file.


Leonid.

Reply all
Reply to author
Forward
0 new messages