sbgn / libsbgn

Libraries for the Systems Biology Graphical Notation (SBGN); Java and C++
Other
15 stars 8 forks source link

STAT1 alpha get's converted to STAT1α #24

Closed cannin closed 8 years ago

cannin commented 13 years ago

Greek letters, and special characters in general, do not get properly encoded and decoded by the libsbgn java library. This is clearly visible in the "and.sbgn" test-case.

Reported by: *anonymous

cannin commented 13 years ago

I changed the label 'STATalpha'. The alpha is stored as the character for alpha in the xml file and not α any more. α (instead of α) would work as well. It is correctly read by the library and encoded as character alpha. But when I store it again, the alpha is stored as character alpha.

Original comment by: tobicz

cannin commented 13 years ago

Original comment by: tobicz

cannin commented 13 years ago

Tobias, you solved the symptom, but not the disease. I really think we should do more to solve this.

Opening it again....

Original comment by: amarillion

cannin commented 13 years ago

Original comment by: amarillion

cannin commented 13 years ago

Original comment by: amarillion

cannin commented 13 years ago

Nevermind, I misunderstood. You really use "STAT1α" not "STAT1alpha" So the lesson here is that if we create the xml manually, we have to use UTF-8 encoding and it works just fine.

Original comment by: amarillion