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

Can't sychronize with Nextcloud due to character in password out of Latin1 range #246

Closed
4 tasks done
mbreskovec opened this issue Feb 20, 2018 · 2 comments
Closed
4 tasks done
Labels
bug It's a bug

Comments

@mbreskovec
Copy link

Operating system

  • Linux
  • Android

Application

  • Desktop
  • Mobile

Hello guys, I can't synchronize my Joplin notes via Nextcloud due to error message mentioned below:

The string to be encoded contains characters outside of the Latin1 range.

I am using special characters in my password, so this is the reason probably.
Is this something what could be fixed easily, or I need to change my password instead?

@laurent22 laurent22 added the bug It's a bug label Feb 20, 2018
@laurent22
Copy link
Owner

Yes for now the only thing to do will be to change the password as it doesn't seem that React Native supports the multiple encodings required (UTF-8 then Base64). I've added a better error message to at least make it clearer.

@Flakebi
Copy link

Flakebi commented Mar 1, 2019

I was able to use UTF-8 passwords using this StackOverflow answer and replacing the code here with the following (with the require at the top of the file):

const Buffer = require("buffer").Buffer;
return new Buffer(this.options_.username() + ':' + this.options_.password()).toString('base64');

@lock lock bot locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

3 participants