Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
shades9662
Posts: 4
Joined: Sat Dec 16, 2006 4:37 pm

Problem uploading Arabic srt/txt files [unicode]

Sat Dec 16, 2006 4:42 pm

Hi,

I've been trying to upload an Arabic srt file (tried both website & subdownloader) to no avail. It just doesn't recognize the file as an srt. I don't know how deep into the file it looks but in order to get Arabic, the srt has to be saved as a textfile with unicode encoding... I think that may be causing the problem.

Dunno what's wrong. I would happily send someone the srt file if it helps.

[On a different note, why do you display an argentina flag for arabic subtitles? Very confusing!]

User avatar
skurakai
Posts: 44
Joined: Tue Jun 06, 2006 7:15 am
Location: Ostrava, Czech republic
Contact: Website

Sat Dec 16, 2006 5:52 pm

For arabic language i prefer flag of panarabism:)
What you mean os? 8)

first flag of panarabism
Image

second flag of United Arab Republic
Image

User avatar
skurakai
Posts: 44
Joined: Tue Jun 06, 2006 7:15 am
Location: Ostrava, Czech republic
Contact: Website

Sat Dec 16, 2006 6:07 pm

I think that subtitles must been in ANSI text. No unicode. Or player must have plugins to transcode (as DivXG400, ...)

shades9662
Posts: 4
Joined: Sat Dec 16, 2006 4:37 pm

Mon Dec 18, 2006 4:39 pm

Firstly, Unicode will work with VobSub using a player like winamp with no problems...

Secondly, since there is no flag to represent Arabic (there're 20+ nations), I propose a simple gif imapge with black text on white background stating "ARABIC" in small caps.

User avatar
skurakai
Posts: 44
Joined: Tue Jun 06, 2006 7:15 am
Location: Ostrava, Czech republic
Contact: Website

Mon Dec 18, 2006 5:06 pm

To subtitles. Try open this in SubtitleWorkshop and convert to srt.

ixquic
Posts: 73
Joined: Wed Aug 23, 2006 4:39 pm

Unicode please!

Fri Dec 22, 2006 12:08 am

The fact that Subdownloader blocks Unicode is a problem for many languages. With ANSI-encoded "special" (non-US-ASCII) characters you always need to set the correct encoding manually when you open them, and there are several possible encodings for each language/script/alphabet. The encoding cannot be easily deduced from the language or the file content -- even programs with "auto-detection" (like MS Word) get it wrong most of the times. When you try to open a text file without setting the right codepage, you end up with strange symbols, or in the worst case everything is replaced by "????? ??? ????".

Unicode was invented long ago just to solve this problem, and it's an international standard now. I understand that Subdownloader looks into files to make sure they're valid subtitles, and see what format they are. That's a good thing. But it shouldn't block Unicode.

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Sat Dec 23, 2006 4:49 pm

I will look deeper on this issue. It is not problem with SubDownloader, but WEBAPI. I do some validation before uploading, and it seems php is not unicode capable with regex. I will fix it anyway. Thanks for report.

Please attach problematic subtitles, which you cant upload so I can make correction.
Last edited by oss on Sat Dec 23, 2006 5:13 pm, edited 1 time in total.

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Sat Dec 23, 2006 4:54 pm

For arabic language i prefer flag of panarabism:)
What you mean os? 8)

first flag of panarabism
Image

second flag of United Arab Republic
Image
I can change that :)

shades9662
Posts: 4
Joined: Sat Dec 16, 2006 4:37 pm

Wed Jan 24, 2007 12:40 am

Sorry for a late reply....

I couldn't figure out how to upload files on this BB, so i've attached a rapidshare link for the file.

The subtitles are correct (i.e. Arabic appears correctly) if you open in windows notepad.

Link http://rapidshare.com/files/13078749/ZOZO.srt.html

Subtitles are for the Swedish/Lebanese film Zozo

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Wed Jan 24, 2007 2:38 am

ok, this was quite tricky. Problem is:

that file is utf-16, and opensubtitles.org support only utf-8. So convert it to utf-8 and you can upload it. I can do that in PHP too, but it is not good solution, because your hash, and my hash will be different, and this will fail in other programs, where are checking only hashes before upload.

Nikephoros
Posts: 35
Joined: Sun Jan 14, 2007 5:11 pm

Wed Jan 24, 2007 4:03 pm

Will most set-top hardware DVD/DIVX players accept unicode subtitles?

I have a feeling they don't.

User avatar
oss
Site Admin
Posts: 5884
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Wed Jan 24, 2007 4:25 pm

dont know. But I will try to add support for utf8/utf16 if it will be possible. utf16 will be converted to utf8 anyway...we will see

massalha
Posts: 2
Joined: Mon Feb 25, 2013 3:05 pm

Re: Problem uploading Arabic srt/txt files [unicode]

Mon Feb 25, 2013 3:08 pm

Hi,

To all systems not supporting Arabic UTF8 encoding.
I have made this solution at
http://arabic-subtitles-fix.com
Where you can convert Arabic to some visual Arabic - that shows fine in streamers.

Try it.

User avatar
Scatera
Posts: 4
Joined: Sat Jul 04, 2015 10:58 pm

Re: Problem uploading Arabic srt/txt files [unicode]

Sat Jul 04, 2015 11:02 pm

This subtitle won't upload for (Error: 402 Subtitles has invalid format)...

https://www.dropbox.com/s/mtcxd3esn3lag ... 4.srt?dl=0

User avatar
hector
Posts: 370
Joined: Wed Jan 01, 2014 12:27 pm
Location: Spain

Re: Problem uploading Arabic srt/txt files [unicode]

Sun Jul 05, 2015 12:56 pm

It seems to be bad formed. In every subtitle line you have:
{\blur0.5\bord0\shad0.5\b0}<font face="adobe arabic" color=#F6AB6A size=25>

which is not valid. And the "Scatera" at the end.
What software did you use to generate it? You can see it with "notepad" or any text editor. Delete those phantom lines and you're done.

Return to “General talk”

Who is online

Users browsing this forum: No registered users and 24 guests