Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

TiddlyFox does not support unicode file names #38

Open
megafanat opened this issue Jan 15, 2016 · 2 comments
Open

TiddlyFox does not support unicode file names #38

megafanat opened this issue Jan 15, 2016 · 2 comments

Comments

@megafanat
Copy link

If file path contains characters with codes more than 255 TiddlyFox shows message box with error and does not save file.
OS: Windows 8.1
Browser: Firefox 43.0.4
Message box

@megafanat
Copy link
Author

How to reproduce:

  • Create folder with Russian name "тест" or Greek name "τεστ".
  • Copy Tiddly Wiki file to this folder.
  • Open this file in Firefox.
  • Edit and save some tiddler.
  • When you save changed tiddler you see error message. File is not saved.

@megafanat
Copy link
Author

How to fix:
File tiddlyfox.js, line 23
var pathname = document.location.toString().split("#")[0];
Change this line to:
var pathname = decodeURI(document.location.toString().split("#")[0]);

URI from document location is encoded and you should decode it before using as file name.

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

No branches or pull requests

1 participant