Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Utf8 Error in Config-IniFiles Module...HELP!!!

Status
Not open for further replies.

luvcal

Programmer
Aug 10, 2001
54
US
I can't be sure this is not user error, but after downloading and running make test, I get the following error: "Can't use \x{} without 'use utf8' declaration at /tmp/Config-IniFiles-2.29/blib/lib/Config/IniFiles.pm line 518." This occurs for every test. I ran make install anyway and created the following script:


#!/usr/bin/perl
use Config::IniFiles;

my $cfg = new Config::IniFiles( -file => "/tmp/perltmp/testfile.ini" );
print "We have parm " . $cfg->val( 'Section', 'Parameter' ) . "."
if $cfg->val( 'Section', 'Parameter' );

This also failed with the following error:

/^\x{FEFF}/: Can't use \x{} without 'use utf8' declaration at /usr/opt/perl5/lib/site_perl/5.6.0/Config/IniFiles.pm line 518.
Compilation failed in require at initst.pl line 2.
BEGIN failed--compilation aborted at initst.pl line 2.
This also returned the following error:

INFO:
=====
Config-IniFiles-2.29
perl v5.6.0 built for aix
AIX myhost 1 5 00009CDF4C00 AND RedHat Linux 7.2 ix86
 
It's been a while since I played with this but it sounds like you need the UTF8 fonts installed. Check with your OS manufacturer. There's always a better way...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top