Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Path::Class::Unicode(3User Contributed Perl DocumentatiPath::Class::Unicode(3)

NAME
       Path::Class::Unicode - Maps Unicode filenames to	local encoding and
       code pages

SYNOPSIS
	 use Path::Class::Unicode;

	 # Use ufile() to create Unicode objects
	 my $fn	  = "\x{55ed}.txt";
	 my $file = ufile("path", $fn);

	 my $fh	= $file->open;

	 my $fn	  = "\x{55ed}.txt";
	 my $file = ufile("/path", $fn);
	 my $uri  = $file->uri;	 # file:///path/%E5%97%AD.txt (always utf-8)

	 my $fh	  = ufile_from_uri($uri)->open;

DESCRIPTION
       Path::Class::Unicode is a Path::Class extension to handle Unicode file
       names by	mapping	them to	local encodings	when stringified. It maps to
       UTF-8 for all UNIX systems including Mac	OS X and uses Windows code
       page (like cp932	for Japanese) in Win32 systems.

       It's very useful	if you store file paths	using URI representation like
       <file://> and uses URI escaped UTF-8 characters for non-ASCII
       characters. See Path::Class::URI	for details.

TODO
       It would	be nice	if we could proxy filehandles using Win32API::File.

AUTHOR
       Tatsuhiko Miyagawa <miyagawa@cpan.org>

       mattn

LICENSE
       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

SEE ALSO
perl v5.24.1			  2008-12-03	       Path::Class::Unicode(3)

NAME | SYNOPSIS | DESCRIPTION | TODO | AUTHOR | LICENSE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Path::Class::Unicode&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help