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

Problem encoding video title #11045

Closed
ObaidGH opened this issue Oct 27, 2016 · 4 comments
Closed

Problem encoding video title #11045

ObaidGH opened this issue Oct 27, 2016 · 4 comments

Comments

@ObaidGH
Copy link

@ObaidGH ObaidGH commented Oct 27, 2016

I have problem encoding video title while retrieving video title using --get-title command

cannot encode hindi characters 😞

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 27, 2016

Could you paste your command and the output? Also the output of youtube-dl -v

@ObaidGH
Copy link
Author

@ObaidGH ObaidGH commented Oct 28, 2016

The original title is this: Taarak Mehta Ka Ooltah Chashmah - तारक मेहता - Episode 2056 - 25th October, 2016

1. Command: -v --get-title doest not get the hindi characters

-v --get-title

2. Command --get-title also gives the same output

-v

3. GUI, this is the method i used to get the title using --get-title command
private  string GetFileName(string url)
        {
            Process cmd = new Process();
            cmd.StartInfo.FileName = ex1;
            cmd.StartInfo.RedirectStandardInput = true;
            cmd.StartInfo.RedirectStandardOutput = true;
            cmd.StartInfo.CreateNoWindow = true;
            cmd.StartInfo.UseShellExecute = false;
            cmd.StartInfo.Arguments = " --get-title " + url;
            cmd.StartInfo.StandardOutputEncoding = Encoding.UTF8;
            cmd.Start();
            cmd.WaitForExit();
            return cmd.StandardOutput.ReadLine();
        }
output:

output

You see that the Hindi characters are not printed

@linglung
Copy link

@linglung linglung commented Dec 3, 2016

@ObaidGH
Copy link
Author

@ObaidGH ObaidGH commented Dec 4, 2016

👍

@ObaidGH ObaidGH closed this Dec 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.