Akbar, first of all, thanks for this excellent and useful tool.
Anyway, I have a UTF-8 without BOM english srt with some “2 bytes long” characters (like é or ♪). If the 1st time they appear are in the first “entries” (I have checked around 1800 characters), when I import it, then everything is fine, but if the 1st time they appear they do it later, then ?? appears instead of these characters. If the file is UTF-8 BOM it does not happen and the file is imported fine.
Anyway, as I have told you before, thanks for your excellent tool.
Thanks Ramon for sharing this case. It’s an interesting encoding scenario, which I have’t run into before. I though BOM characters only appear start of the document, but may be there are some cases where it’s not. Would be possible for you to share your SRT file with me for further debugging? I can then look through that and see if I can teach my SRT cleaning code to also get rid of these marker characters.
Akbar, regarding my March 16, 2024 at 8:55 am message, I didn’t see your replay until today. Maybe I didn’t explain well. The BOM character in UTF-8 files, as you say, is at the beginning. The problem is with UTF-8 files with no BOM, that in some cases UTF-8 is detected (and then it is OK), and in other cases UTF-8 is not detected and then characters longer than 1 byte are not recognized. E. g. If the first “2-byte long character” in the file is “in the first lines” if the file, then it detects that the input is UTF-8 and then that character and the rest of “2-byte long characters” are recognized. If the 1st time a “2-byte long character” in the file appears not in the first lines, then the input is not recognized as UTF-8, and ?? appears instead of the UTF-8 character.
For me it is no longer a problem because I have found a way to add the BOM character before translating. Anyway, if you want to “investigate”, I send you by email 3 files working with/without BOM, and not working with BOM. I give you some more few details in the mail.
Thanks again
Thank you for explaining this in such a detail and sharing the sample SRT files. Thanks to your help, I think I have now isolated and fixed the problem causing some files without BOM to not recognized correctly as the UTF-8. If you run into any other issues, please do let me know.
Sorry for the trouble. Do you get any particular error or it will just not translate without showing any error? I’m asking because can’t reproduce this issue and need help in isolating on what’s causing this failure.
Hello~!
When I use google translator option, the drop down language menu seems to be depended to my IP.
When I am in Thailand, it’s in Thai, when I am in Vietnam it’s in Vietnamese and so on. I cannot read these languages, is there any way to set my preferred language as English for the drop-down menu? I can’t seem to find any setting that changes the language. When I get redirected to original Google Translator page, its in English as usual.
Hi Marta, thanks for sharing the detail. I think Google Translator widget picks the language from the browser language settings. So if you can change it, that should do the trick. I don’t see any settings in the widget configuration to force this, but I will see if I can change it on the fly (after loading) without breaking it functionality.
hello, great work, best online translator around, but seems to get issues today as i am unable to upload the subs, can you pls look into it? (i get error 6)
It works really nice to translate from eng to est until there is some subs where is these [CELLPHONE RINGS] that translates really wrong. Is there any way how to delete all these “silent noise” [GUN SHOTS] automatically or with one click?
Thanks for the feedback and I’m glad you are finding this mostly of help.
Regarding your query to auto remove silent noise, I think the best option at the moment is to use Find & Replace feature to find and replace these sentences from the subtitle – either before translation or after translation. If you have no expertise with Regular Expression before, I think the expression you’r looking for is “\[.*?\]”. You can keep the replace field empty. You can read more about this and explore/test these here: https://regex101.com/
Akbar, first of all, thanks for this excellent and useful tool.
Anyway, I have a UTF-8 without BOM english srt with some “2 bytes long” characters (like é or ♪). If the 1st time they appear are in the first “entries” (I have checked around 1800 characters), when I import it, then everything is fine, but if the 1st time they appear they do it later, then ?? appears instead of these characters. If the file is UTF-8 BOM it does not happen and the file is imported fine.
Anyway, as I have told you before, thanks for your excellent tool.
Thanks Ramon for sharing this case. It’s an interesting encoding scenario, which I have’t run into before. I though BOM characters only appear start of the document, but may be there are some cases where it’s not. Would be possible for you to share your SRT file with me for further debugging? I can then look through that and see if I can teach my SRT cleaning code to also get rid of these marker characters.
Regards, Akbar
Akbar, regarding my March 16, 2024 at 8:55 am message, I didn’t see your replay until today. Maybe I didn’t explain well. The BOM character in UTF-8 files, as you say, is at the beginning. The problem is with UTF-8 files with no BOM, that in some cases UTF-8 is detected (and then it is OK), and in other cases UTF-8 is not detected and then characters longer than 1 byte are not recognized. E. g. If the first “2-byte long character” in the file is “in the first lines” if the file, then it detects that the input is UTF-8 and then that character and the rest of “2-byte long characters” are recognized. If the 1st time a “2-byte long character” in the file appears not in the first lines, then the input is not recognized as UTF-8, and ?? appears instead of the UTF-8 character.
For me it is no longer a problem because I have found a way to add the BOM character before translating. Anyway, if you want to “investigate”, I send you by email 3 files working with/without BOM, and not working with BOM. I give you some more few details in the mail.
Thanks again
Hi Ramon,
Thank you for explaining this in such a detail and sharing the sample SRT files. Thanks to your help, I think I have now isolated and fixed the problem causing some files without BOM to not recognized correctly as the UTF-8. If you run into any other issues, please do let me know.
Thanks again!
Regards, Akbar
tanx
It is broken, google translate doesnt work please fix
Sorry for the trouble. Do you get any particular error or it will just not translate without showing any error? I’m asking because can’t reproduce this issue and need help in isolating on what’s causing this failure.
Regards, Akbar
Great job
Hello~!
When I use google translator option, the drop down language menu seems to be depended to my IP.
When I am in Thailand, it’s in Thai, when I am in Vietnam it’s in Vietnamese and so on. I cannot read these languages, is there any way to set my preferred language as English for the drop-down menu? I can’t seem to find any setting that changes the language. When I get redirected to original Google Translator page, its in English as usual.
Hi Marta, thanks for sharing the detail. I think Google Translator widget picks the language from the browser language settings. So if you can change it, that should do the trick. I don’t see any settings in the widget configuration to force this, but I will see if I can change it on the fly (after loading) without breaking it functionality.
Regards, Akbar
hello, great work, best online translator around, but seems to get issues today as i am unable to upload the subs, can you pls look into it? (i get error 6)
mthx
Sorry, my website was temporarily having some issues and is now stable again. Thanks for your patience.
Regards, Akbar
Hi Chillimar,
I use “Subtitle Edit” for years to edit and remove “subtitles for the deaf and hearing impaired” and much more…
https://github.com/SubtitleEdit/subtitleedit/releases/tag/4.0.3
https://nikse.dk/
Good
hi. im from iran. and it so goo. tnx a lot. use it and enjoy.
It works really nice to translate from eng to est until there is some subs where is these [CELLPHONE RINGS] that translates really wrong. Is there any way how to delete all these “silent noise” [GUN SHOTS] automatically or with one click?
Thanks for the feedback and I’m glad you are finding this mostly of help.
Regarding your query to auto remove silent noise, I think the best option at the moment is to use Find & Replace feature to find and replace these sentences from the subtitle – either before translation or after translation. If you have no expertise with Regular Expression before, I think the expression you’r looking for is “\[.*?\]”. You can keep the replace field empty. You can read more about this and explore/test these here:
https://regex101.com/
Regards, Akbar