Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Chinese characters can't be saved into postgresql such as in a CodeSystem post and be as a url parameter to search something (version 2.0) #454
Hi @jamesagnew ,thanks for your comment.Posting or putting any resource body including Chinese characters as the value of certain properties(e.g. name,publisher,description) results in this exception.The below is a sample for CodeSystem:
Hi @jamesagnew, sorry to confuse you, it's my mistake to mention to database.
In fact this has nothing to do with database, but the post operation will call the method BaseHapiFhirDao.normalizeString() to normalize the ‘post JSON body', and this method doesn't allow characters in a ‘post JSON body' which are greater than '\u007F' to remain intact..
I don't know why hapi-fhir makes the rule only English characters can get through the filter, but I really wish I could populate some Chinese characters into the ‘description‘ property so that Chinese people can understand what it is used for..
Please have a look at the method's codes: