Yuk. The problem is that this buffer is not only processed by preview-latex, but also by AUCTeX, and the versions that get combined may be different. AUCTeX uses the source code buffer's file encoding by default, which is fine for basically unibyte based coding systems.
It sounds like the safest thing is to convert the string to what you want, just before you use it. If decode-coding-string is supposed to have a chance of reassembling this junk, it must only be run at the end of reconstructing the byte stream. Yes, this is completely insane. No, I can't avoid having to deal with it somehow. If you reconstruct the correct byte stream, it should work to apply decode-coding-string to it. _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel