Graham Gough <[EMAIL PROTECTED]> writes: > Tried this, it saved, then the next time the file needed saving I and > got the message > > These default coding systems were tried: > iso-2022-7bit-unix iso-latin-1 > However, none of them safely encodes the target text. > > Is there any way to identify the characters that are ausing the > problem?
They should either be highlighted (Emacs 20.3 I think) or point should be at the first character (Emacs 21 I think). Switch to the .bbdb buffer and save manually to see it. What I *think* has happened is that you or BBDB has added the cookies without transcoding the file. The file is therefore still in some other encoding which gets read as iso-2022-7bit. Try this: Remove the cookie from a copy of the file, save, close the file, and open it again (this is important, don't reopen it, close it, then open it). Emacs should the automatically determine a good encoding. Check whether the heuristics were right. If satisfied, use C-x C-m C-f iso-2022-7bit RET to set the encoding your want to use, and save. Close it, open it, just to check that it still works. Also check what encoding Emacs thinks the file is in (look at the indicator at the beginning of the modeline). Then add the coding cookie again, save, open again, check it still works, replace .bbdb with the copy. (Opening .bbdb, deleting the contents, and using file-insert to insert the copy might not work, because then you are using the buffer-file-encoding of the original instead of the copy when saving.) Alex. -- .O. http://www.emacswiki.org/alex/ ..O Schroeder's fifth law: OOO Never accept more work than you can handle in one night of hacking. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/