activewarehouse / activewarehouse-etl-sample

A place where you will find a sample of use of ActiveWarehouse-ETL
40 stars 9 forks source link

etl/extract.ctl:79:in `===': invalid byte sequence in US-ASCII (ArgumentError) #9

Closed pcreux closed 12 years ago

pcreux commented 12 years ago
etl/extract.ctl:79:in `===': invalid byte sequence in US-ASCII (ArgumentError)
    from etl/extract.ctl:79:in `block (3 levels) in get_binding'
    from etl/extract.ctl:75:in `each_line'
    from etl/extract.ctl:75:in `block (2 levels) in get_binding'
from /Users/pcreux/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/csv.rb:1354:in `open'
    from etl/extract.ctl:61:in `block in get_binding'
    from /Users/pcreux/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activewarehouse-etl-1.0.0.rc1/lib/etl/processor/block_processor.rb:10:in `call'
    from /Users/pcreux/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activewarehouse-etl-1.0.0.rc1/lib/etl/processor/block_processor.rb:10:in `process'
    from /Users/pcreux/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activewarehouse-etl-1.0.0.rc1/lib/etl/engine.rb:516:in `block in pre_process'

On Ruby 1.9.3-p125. (Don't have time to investigate further today... :-/)

pcreux commented 12 years ago

Fix: set the env variable LANG to "en_US.UTF-8".

export LANG="en_US.UTF-8".