Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Worksharing Journal (.slog) encoded in UCS-2 LE BOM? why?

2 ANTWORTEN 2
Antworten
Nachricht 1 von 3
Anonymous
495 Aufrufe, 2 Antworten

Worksharing Journal (.slog) encoded in UCS-2 LE BOM? why?

hi

 

while going thru the worksharing journal (and some other files in the backup folder of a model) i noticed, that notepad++ (and other tools) identify the encoding as "UCS-2 LE BOM".

 

this raised a few questions for me:

1) is it really UCS-2 or is it UTF-16 being misinterpreted? because UCS-2 is deemed obsolete.

2) no matter if UCS-2 or UTF-16, why was it chosen over UTF-8?

  2a) as is, files are around double the size it could be if encoded as UTF-8, which in my opinion is important as these are frequently accessed files so possibly slowing down all users involved.

  2b) at least the worksharing journal seems to not contain special characters that would warrant for spending more bits on characters.

3) why is there a mix of different encoded files within that backup folder and the local journals, that is just asking for trouble, no?

 

the mix i've found on a windows machine:

(also, the EOL is a mix of Mac(CR),Windows(CR LF) and Unix(LF)...)

 

local

  • journal.XXXX.txt : UTF-8, EOL Win
  • journal.XXXX.worker1.log: ANSI, EOL Win
  • dump.XXXX.txt: UTF-8, EOL Win

 

backup folder of the central model

  • XXXXXXX.slog: UCS-2 LE BOM, EOL Win
  • contentdocuments.XXXXX.dat: ANSI, EOL Unix
  • elemtable.XXXXX.dat: ANSI, EOL Mac
  • eperm.dat: ANSI, EOL Unix
  • global.XXXX.dat: ANSI, EOL Mac
  • history.XXXXX.dat: ANSI, EOL Unix
  • incrementtable.XXXXX.dat: ANSI, EOL Mac
  • partitiontable.XXXXX.dat: ANSI, EOL Unix
  • transmissiondata.XXXXX.dat: ANSI, EOL Mac
  • XXXXX_XXXXX.rws: ANSI, EOL Mac

    thanks if anyone can shed some light on this.
2 ANTWORTEN 2
Nachricht 2 von 3
SteveKStafford
als Antwort auf: Anonymous

I have used Notepad++ in the past, it's not on this computer so I can't double check...my recollection is the format is a user preference setting. When I open a .slog in Notepad and use Save As the format UTF-16 LE is already selected.


Steve Stafford
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
EESignature

Nachricht 3 von 3
Anonymous
als Antwort auf: SteveKStafford

trying to read it with python only works as utf-16 (which is more or less ucs-2), so that is set by the file. 

 

image.png

 

plus, resaving the file as utf-8 makes it roughly half the size because it wastes less bits per character, so this seems not to be a notepad++ issue. plus i tried other editors as well and they came to the same conclusion encoding-wise....

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report