Title: IfcOpenShell Python: Raw diacritics not getting parsed correctly · Issue #8430 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: IfcOpenShell Python: Raw diacritics not getting parsed correctly · Issue #8430 · IfcOpenShell/IfcOpenShell
X Title: IfcOpenShell Python: Raw diacritics not getting parsed correctly · Issue #8430 · IfcOpenShell/IfcOpenShell
Description: Bug Description Working with python I found out that ifcopenshell makes any diacritic character (Or a character like Ñ) disappear entirely when read, for example if the name of the IfcSite contains any diacritic: #19=IFCSITE('1H5TyRWt6qR...
Open Graph Description: Bug Description Working with python I found out that ifcopenshell makes any diacritic character (Or a character like Ñ) disappear entirely when read, for example if the name of the IfcSite contains...
X Description: Bug Description Working with python I found out that ifcopenshell makes any diacritic character (Or a character like Ñ) disappear entirely when read, for example if the name of the IfcSite contains...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8430
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IfcOpenShell Python: Raw diacritics not getting parsed correctly","articleBody":"### Bug Description\n\nWorking with python I found out that ifcopenshell makes any **diacritic character** (Or a character like Ñ) **disappear** entirely when read, for example if the name of the IfcSite contains any diacritic:\n#19=IFCSITE('1H5TyRWt6qRzWaj97rdExA',#14,'Plácémént ',$,$,#18,$,$,.ELEMENT.,$,$,$,$,$);\nIfcOpenShell will output 'Plcmnt ' when you check the element name.\n\nIm aware that **this is not an expected input**, according to (https://technical.buildingsmart.org/resources/ifcimplementationguidance/string-encoding/) **there should be a prior encoding of these characters before shipping them out in the IFC**, but the reality is that **viewers like BIMvision can read these IFCs correctly** making the argument for rebuilding the IFC with correct encoding harder to elaborate.\n\nTo reproduce this case im attaching two files: An IFC as example \"CuboTildes.txt\" and a simple python script \"testTildes.py\". In order to reproduce the error we just need:\n1. Install ifcopenshell via: **\" pip install ifcopenshell==0.8.5\"**\n2. Download the files, changue the extension of **CuboTildes.txt** to **CuboTildes.ifc** \n3. Execute the script **python .\\testTildes.py**\n\n### Attachments\n\n[testTildes.py](https://github.com/user-attachments/files/29852606/testTildes.py)\n[CuboTildes.txt](https://github.com/user-attachments/files/29852607/CuboTildes.txt)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/campog424","@type":"Person","name":"campog424"},"datePublished":"2026-07-09T14:29:59Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8430"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0daec5f5-2399-cbbf-d4f9-d618429d35a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6F8:99B56:5ED4DB:85DA35:6B047750 |
| html-safe-nonce | 207c8c2d39656e24e36ff8dc2d45de13f011e7687e7ec115984f793152b95bde |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkY4Ojk5QjU2OjVFRDREQjo4NURBMzU6NkIwNDc3NTAiLCJ2aXNpdG9yX2lkIjoiOTE3NDU5MDQ0ODY0MjMyNDMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 371e549d75130ab9e2705072b204a6cf41107d473801e0d3d4f9aafa803346fc |
| hovercard-subject-tag | issue:4847123960 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8430/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c068ab4e119aadee0c104416cf551370633697b9df174fb12805b22160577496/IfcOpenShell/IfcOpenShell/issues/8430 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c068ab4e119aadee0c104416cf551370633697b9df174fb12805b22160577496/IfcOpenShell/IfcOpenShell/issues/8430 |
| og:image:alt | Bug Description Working with python I found out that ifcopenshell makes any diacritic character (Or a character like Ñ) disappear entirely when read, for example if the name of the IfcSite contains... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | campog424 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width