Skip to content
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

UTF-8 encoding #16

Open
lmcglohon opened this issue Jul 31, 2018 · 0 comments
Open

UTF-8 encoding #16

lmcglohon opened this issue Jul 31, 2018 · 0 comments

Comments

@lmcglohon
Copy link
Contributor

If there is a UTF-8 encoding issue in the database, When the post is done in the ArchivesSpace Client, possibly use the same mechanism that is used in the Archon migration tool:

In the Archon post method, see this line (https://github.com/archivesspace/archon-migration/blob/cfc9abe534e5c19b47de364625bab8535556cf31/src/org/nyu/edu/dlts/utils/ASpaceClient.java#L160):

post.setRequestEntity(new StringRequestEntity(jsonText, "application/json", "UTF-8"));

The corresponding line of code in the AT post method is (

post.setRequestEntity(new StringRequestEntity(jsonText, "application/json", null));
):

post.setRequestEntity(new StringRequestEntity(jsonText, "application/json", null));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant