gary16 has asked for the wisdom of the Perl Monks concerning the following question:
hi,everybody I m from China.And I now have a strange problem.This day I have imported the oracle data with sqlldr. AND I used the system() to call the sqlldr.The data text is encoded by GB2312;The title of the data text also is .When I run the perl script,The perl create a new data text encoded by utf8 and replace the old one.Here is my code.Have anybody figured out what is happened??
#!/usr/bin/perl -w use strict; use Net::FTP; use Date::Calc qw(:all); use Encode qw(:all); $filename="测试文本"; if($filename){ system(" sqlldr test1/123456 data=$filename control=importwz.ctl"); + }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use sqlldr with perl
by CountZero (Bishop) on Jan 28, 2015 at 07:29 UTC | |
by gary16 (Novice) on Jan 28, 2015 at 08:37 UTC | |
by CountZero (Bishop) on Jan 28, 2015 at 08:52 UTC | |
by gary16 (Novice) on Jan 28, 2015 at 09:17 UTC | |
by CountZero (Bishop) on Jan 28, 2015 at 20:04 UTC | |
by gary16 (Novice) on Feb 03, 2015 at 07:42 UTC | |
|
Re: use sqlldr with perl
by Utilitarian (Vicar) on Jan 28, 2015 at 11:23 UTC | |
|
Re: use sqlldr with perl
by Anonymous Monk on Jan 28, 2015 at 07:51 UTC | |
by gary16 (Novice) on Jan 28, 2015 at 08:39 UTC | |
by Anonymous Monk on Jan 28, 2015 at 09:24 UTC | |
by Discipulus (Canon) on Jan 28, 2015 at 09:27 UTC | |
by Anonymous Monk on Jan 28, 2015 at 10:14 UTC | |
|
Re: use sqlldr with perl
by soonix (Chancellor) on Jan 28, 2015 at 10:22 UTC | |
by Anonymous Monk on Jan 28, 2015 at 10:46 UTC |