Welcome Guest ( Log In | Register )

FLAC support unicode?
post Sep 9 2006, 10:31
Post #1

Group: Members
Posts: 10
Joined: 15-August 06
Member No.: 34062

I am a newer for FLAC. I am using FLAC to convert wave files into flac. But if the filename or directory contians Chinese, the tools told me "Error: can not open input file F:\audio\---------------".

FLAC does not support UNICODE? I need to re-complile the FLAC project?

Go to the top of the page
+Quote Post
Start new topic
post Sep 9 2006, 12:02
Post #2

Group: Members
Posts: 826
Joined: 29-September 04
Member No.: 17374

Hi, currently flac tools do not support unicode filenames. But you can work-around this limitation with this script:
QUOTE (flac.cmd)
@echo off
set encoder="C:\Program Files\flac-1.1.2-win\bin\flac.exe"
set tempfile=%random%%random%%random%%random%
type "%1" | %encoder% -8 - -o "%~d1%~p1%tempfile%"
ren "%~d1%~p1%tempfile%" "%~n1.flac"

Copy this to a text file and rename it to "flac.cmd", change the path to flac.exe (marked with green color). Then you will be able to use flac.cmd like this:


F:\audio>flac.cmd 你好世界.wav

this will encode to F:\audio\你好世界.flac output file.

F:\>flac.cmd \audio\你好世界.wav

this will also encode to F:\audio\你好世界.flac

This post has been edited by Egor: Sep 9 2006, 12:50
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 1st December 2015 - 11:37