-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FZK Viewer can't open gbXML file from Spider #138
Comments
Hi @EK-CEL Sorry, it took me a while to figure things out. The issue is caused by the first line of the file
The gbXML Viewer saved 'Problematic.xml' file in single byte characters UTF-8 but the incoming file was originally saved in double byte characters - UTF 16. So after saving delete the first line with the xml tag, things were good to go and the file loaded in both OpenStudio and FZK Viewer ( and gbXML Viewer, of course ). BTW, this explains the 50% reduction in file size as well. ;-) Questions:
Any thoughts on international file handling appreciated Also: can I add this file to the demo files? |
Wow, you found the reason! Thank you. My thoughts about your questions:
Yes, you can use the files for project needs. |
@EK-CEL Many of the sample files here are from Revit and are UTF-8 https://github.com/ladybug-tools/spider/tree/master/gbxml-sample-files So it looks like UTF is a user-selectad Revit setting or derived from the operating system or browser settings. It turns out that saving to UTF 16 is significantly more complicated than saving to UTF-8. And it would take a lot of test to verify files are OK. I think the first thing I will try to do is: if therefore: As far as I can see the encoding is optional, See: https://msdn.microsoft.com/en-us/library/ms256048(v=vs.110).aspx Thank you for your permission to use your file as a sample gbXML file. |
@theo-armour |
I have uploaded a gbXML file to the Spider and immediately downloaded it back. There were some differences and I fixed them so that the WinMerge app tells the files as identical (regardless of different file size). Unfortunately I can't open the new file with FZK viewer. Please see the gbXML files attached.
Thank you.
gbXMLs.zip
The text was updated successfully, but these errors were encountered: