Comments (7)
It is most likely a cgnsview issue (i.e., tcl/tk usage issue). hdfview is java based, so UTF-8 is natively handled.
from cgns.
typedef char char_33[33];
VTK IO seems transparents on UTF8,
https://github.com/Kitware/VTK/blob/master/IO/CGNS/vtkCGNSReaderInternal.h
it is likely paraview std::string ->QString translation has triggered some trouble, i will have a look.
from cgns.
How did you get utf-8 in CGNS? HDF5's default is ASCII, and the cgns library does not support changing it to utf-8. So if you are modifying the CGNS file to use utf-8, that is not supported.
from cgns.
I have cgns, then I use H5py to modified label string to asian language , treating cgns as hdf5. I can confirm asian string has been saved as H5T_CSET_UTF8 in cgns.
from cgns.
import h5py
filename = "./HeatingCoil_modified.h5.cgns"
f = h5py.File(filename, "a") # mode = 'a'
# hdf5 use utf8 as the string encoding?
grp = f["Base"]["FluidZone"]["Flow Solution"]
newkey = "Pressure压力".encode(encoding = 'UTF-8')
if newkey in grp:
del grp[newkey]
if True:
newdata = grp["Pressure"] # shallow copy link? copy.copy is not allowed, not pickleable
newdata.attrs["name"] = "Pressure压力" # auto encoding with utf8.
print(newdata.attrs["name"])
grp[newkey] = newdata # create new data with utf8 as H5group name
f.close()
from cgns.
The CGNS standard does not allow not ASCII names for nodes and it is not going to change soon.
Maybe you can try a CPEX to allow UTF-8 for strings stored in data container like DataArray_t. But for performance purpose UTF8 is not justified.
from cgns.
Closing since the CGNS standard does not support UTF-8.
A CPEX would have to be submitted to handle UTF-8 officially, and it would have to address performance issues that could arise from UTF-8.
from cgns.
Related Issues (20)
- Add missing attachments to JIRA imported issues
- Wrong number of bases reported for v4.3 HOT 5
- Problems compiling with MPI. HOT 4
- Call to undeclared internal Tk function TkWmAddToColormapWindows in tkogl HOT 3
- Address warnings generated from gcc 11.3.0 HOT 1
- CMake build fails with hdf5 1.14 HOT 7
- HDF read fails if creation order is not tracked HOT 5
- Add cgnsupdate regression tests
- CGNS failing due to > 1.8 HDF5 library version being used with older CGNS versions to generate files. HOT 14
- Possible to raise limit on maximum open files HOT 3
- Create daily/weekly tests for github actions
- Check #ifdef skip in pcgns_ftest.F90 is still needed
- Best Practices for mixed canonical/polyhedron zones?
- CGNSTools compilation problem under windows and CGNSView open hdf5 type file error
- PartitionID
- FamVC_ HOT 5
- cgnscheck is returning errors for cgns Fortran examples
- Building CGNS tools with Intel LLVM compilers fails HOT 1
- Add citation to GitHub repository
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgns.