Does libvlc support Unicode?

This forum is about all development around libVLC.
Kevin Hoang
Blank Cone
Blank Cone
Posts: 43
Joined: 25 Mar 2010 05:14

Does libvlc support Unicode?

Postby Kevin Hoang » 27 Jan 2011 11:06

I want to make a small player to play a video with file name has unicode part. Does libvlc support Unicode?

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: Does libvlc support Unicode?

Postby XilasZ » 27 Jan 2011 14:03

yes it does.

Kevin Hoang
Blank Cone
Blank Cone
Posts: 43
Joined: 25 Mar 2010 05:14

Re: Does libvlc support Unicode?

Postby Kevin Hoang » 27 Jan 2011 15:20

Look at the libvlc APIs, it only allow basic c string (char*), so how may I add unicode file name to my player?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Does libvlc support Unicode?

Postby Rémi Denis-Courmont » 27 Jan 2011 17:42

VLC uses UTF-8.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: Does libvlc support Unicode?

Postby XilasZ » 31 Jan 2011 13:30

Look at the libvlc APIs, it only allow basic c string (char*), so how may I add unicode file name to my player?
Yes. Just as Rémi said, it's UTF8, so special characters are just encoded on several chars, just send several chars for those, VLC will recognize them.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests