![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Vocabulary Editor vs. external Editor
Hello,
I observed that when I use an external editor instead of the EM2 internal Vocabulary Editor that after saving the file and accessing it in EM2 (eg.Location.txt) then EM2 changes the formatting and encoding-type of 'location.txt'. For example when using the Vocabulary Editor and edit contents in the field 'Location' in the folder of default vocabulary then everything is just fine. But when I open that same file in an external Editor (ClearEdit or Notepad++) the editor shows that the file is encoded as 'UTF-16 little endian' (=UCS-2 little endian). One can enter or delete a location value and save the file 'location.txt'. After accessing this file in EM2 by selecting a location value then one can observe that the file-size changes. This can easily be observed for the corresponding file in the folder of the default vocabulary. Reopening the same file in an external editor reveals that EM2 has inserted empty lines (?). Also the first line now appears twice. I find this a very strange behaviour. I use both Editors to write code in HTML, PHP, XML, XSL and never had Editor-specific issues. So I am wondering what EM2 is doing to the file? It would also be intersiting to know what character-encoding EM2 is actually using. I might have missed it but didn't find any indication about the used character encoding. I would presume that it is Windows/ANSI or iso-8859-1. Saving the file in UTF-8 does not change this behaviour of EM2. So here is the question: What is the proper way of editing files in the vocabulary folder so that EM2 does not change the newly edited file? To me this is hard to comprehend and ask you to please try it for yourself. Any helpful advice is highly appreciated. Many thanks, Hans. |
|
|
|
#2 |
|
Guest
Posts: n/a
|
RE: Vocabulary Editor vs. external Editor
Hi Hans, AFAIK, Expression Media uses "Unicode" encoding to save the vocabulary files. The issue that you'd described seems to occur only when you edit and save the vocabulary file with a different encoding in ClearEdit (at least that's how I was able to reproduce the issue). The formatting was kept intact if the encoding wasn't changed by external editor. That's said, I think a possible solution for this issue would be to use the Windows notepad to edit the vocabulary file and/or save without changing the encoding. Please let me know if you have any questions. Best Regards, Sekar Raju ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Re: Vocabulary Editor vs. external Editor
Hello
I have tryed Notepad and it doesen´t work for my kw list. But if You use Word and select save as, other format, change the filetype to TXT, in the dropdown of filetypes, click ok, then You got a list of encoding, chose other and at last UNICODE there. This will help for Swedish caracters for me. Roine "Sekar Raju" <> skrev i meddelandet news:.gbl... > > Hi Hans, > > AFAIK, Expression Media uses "Unicode" encoding to save the vocabulary > files. The issue that you'd described seems to occur only when you edit > and > save the vocabulary file with a different encoding in ClearEdit (at least > that's how I was able to reproduce the issue). The formatting was kept > intact if the encoding wasn't changed by external editor. That's said, I > think a possible solution for this issue would be to use the Windows > notepad to edit the vocabulary file and/or save without changing the > encoding. > > Please let me know if you have any questions. > > Best Regards, > Sekar Raju > ================================================== === > This posting is provided "AS IS" with no warranties, and confers no > rights. |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |