Comments (6)
@zerratar No offense taken! This an interesting problem and gave me food for thought for my own projects.
from subsync.
@zerratar
This can be fixed by using UTF-8 encoding when manipulating strings and streams. This way, Arabic and Greek characters are also be supported on top of Latin and Cyrillic.
Some examples: https://www.arclab.com/en/kb/csharp/read-write-text-file-ansi-utf8-unicode.html
from subsync.
@BlackDragonBE Unfortunately the problem is not reading/writing files but the actual filepath that is passed by the args parameter when starting SubSync that for some reason is not unicode when @shnaps tried to use it. So the filesystemwatcher crashes when it gets folder path containing questionmarks.
Latest version atleast support displaying unicode In the console so the cyrillic chars does display correctly.
@shnaps: can you try and run SubSync from the same folder you want to watch and without passing any input folder as parameter? That should force it to run in current directory.
If it works then we know that it can handle cyrillic paths and that the input was not passed as unicode from the console because the videofile you had contains cyrillic chars in it.
from subsync.
@zerratar
Yep, it works.
from subsync.
@shnaps
Awesome that it works for you!
Less awesome part is that it confirms my theory that the program used for inputting the directory that is not passing the values as Unicode. And I can't do anything about that since the problem does not lie with SubSync.
However! There are other ways to go around it. If you create a shortcut to SubSync.exe and pass the folder you want to sync in along with the target and it will work.
from subsync.
I will close this issue now, please make a new one if you find any new problems and thank you for reporting this!
@BlackDragonBE even though that was not the solution to this problem, I really appreciate that you wanted to help out. So I hope that my comment was not too harsh/or if you took it the w rong way! If so, I'm very sorry!
from subsync.
Related Issues (20)
- Exit after running HOT 3
- Overwrite Existing HOT 3
- Trailing \ on UNC paths crashes HOT 3
- Weird ExtractAllEntries error HOT 2
- Cannot create a file when that file already exists HOT 3
- You can help to make SubSync better! Read me! HOT 3
- Improve Multi-language support? HOT 4
- Syncing a root drive fails HOT 3
- Just help and questions HOT 4
- Doesn't work when ran in .bat HOT 2
- When running application from another folder, the opensubtitles.auth file can't be found
- Corrupted characters in Turkish subtitle.
- any possibility to release this functionality for other platforms? HOT 2
- OpenSubtitles API-limit reached HOT 1
- -lang Is Not working HOT 2
- Help please HOT 1
- All the downloaded subtitles were completely wrong,it looks like come from other movies. HOT 3
- NOT working for other languages with -lang whatever;andmore;more;whatever
- Out of the box doesnt work
- Missing binaries HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subsync.