<font style="font-family:trebuchet ms,sans-serif" face="trebuchet ms,sans-serif">Saudações,<br><br>Estou montando um micro tutorial de odfWeave e observei problemas na geração de documentos. Eu tenho um arquivo odf, gerado pelo OpenOffice Writer com o seguinte conteúdo<br>
<br><span style="font-family:courier new,monospace">#---- conteúdo do arquivo odf, walmes_teste1.odf ----</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Isso é um teste</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"><<teste, echo=TRUE>></span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">x <- rnorm(100,50,3)</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">summary(x)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">@</span><br style="font-family:courier new,monospace"></font><span style="font-family:courier new,monospace">#---- fim do arquivo walmes_teste1.odf ---</span><br style="font-family:trebuchet ms,sans-serif">
<br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">Abro uma sessão R para compilar por meio dos comandos que apresentam a mensagem de erro abaixo.</span><br style="font-family:trebuchet ms,sans-serif">
<br style="font-family:trebuchet ms,sans-serif"><b><span style="font-family:courier new,monospace">> odfWeave("walmes_teste1.odt", "walmes_saida1.odt")</span></b><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
Copying walmes_teste1.odt </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Setting wd to /tmp/RtmpCE5KJb/</span><span style="font-family:courier new,monospace">odfWeave24115817941 </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Unzipping ODF file using unzip -o walmes_teste1.odt </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Archive: walmes_teste1.odt</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> extracting: mimetype </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> creating: Configurations2/statusbar/</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
inflating: Configurations2/accelerator/</span><span style="font-family:courier new,monospace">current.xml </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> creating: Configurations2/floater/</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> creating: Configurations2/popupmenu/</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> creating: Configurations2/progressbar/</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> creating: Configurations2/menubar/</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
creating: Configurations2/toolbar/</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> creating: Configurations2/images/</span><span style="font-family:courier new,monospace">Bitmaps/</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> inflating: content.xml </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> inflating: manifest.rdf </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> inflating: styles.xml </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> extracting: meta.xml </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
inflating: Thumbnails/thumbnail.png </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> inflating: settings.xml </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> inflating: META-INF/manifest.xml </span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Removing walmes_teste1.odt </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Creating a Pictures directory</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> Pre-processing the contents</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
Sweaving content.Rnw </span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><b style="color:rgb(204,0,0)"><span style="font-family:courier new,monospace">Erro: ‘content.Rnw’ is not ASCII and does not declare an encoding</span></b><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:trebuchet ms,sans-serif">Se eu removo o e acentuado da frame "isso é um teste" para "isso e um teste", a compilação tem sucesso.</span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">
Googlei e não encontrei alternativas para superar o problema. Minha sessão R é</span><br><br style="font-family:trebuchet ms,sans-serif"><b><span style="font-family:courier new,monospace">> sessionInfo()</span></b><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">R version 2.15.0 (2012-03-30)</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">Platform: i486-pc-linux-gnu (32-bit)</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">locale:</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> [1] LC_CTYPE=pt_BR.utf8 LC_NUMERIC=C </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
[3] LC_TIME=pt_BR.utf8 LC_COLLATE=pt_BR.utf8 </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> [5] LC_MONETARY=pt_BR.utf8 LC_MESSAGES=pt_BR.utf8 </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> [7] LC_PAPER=C LC_NAME=C </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> [9] LC_ADDRESS=C LC_TELEPHONE=C </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
[11] LC_MEASUREMENT=pt_BR.utf8 LC_IDENTIFICATION=C </span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">attached base packages:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">[1] stats graphics grDevices utils datasets methods base </span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">other attached packages:</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">[1] odfWeave_0.7.17 XML_3.6-1 lattice_0.20-6 </span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">loaded via a namespace (and not attached):</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">[1] grid_2.15.0 tools_2.15.0</span><br style="font-family:courier new,monospace">
<br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">Estou no Ubuntu 10.04 com o seguinte resultado de locale</span><br><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:courier new,monospace">walmes@galibi:~$ locale</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LANG=pt_BR.utf8</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LANGUAGE=pt_BR:pt:en</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LC_CTYPE="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">
LC_NUMERIC="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_TIME="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_COLLATE="pt_BR.utf8"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LC_MONETARY="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_MESSAGES="pt_BR.utf8"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LC_PAPER="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_NAME="pt_BR.utf8"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
LC_ADDRESS="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_TELEPHONE="pt_BR.utf8"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LC_MEASUREMENT="pt_BR.utf8"</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">LC_IDENTIFICATION="pt_BR.utf8"</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">LC_ALL=</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">walmes@galibi:~$ </span><br style="font-family:courier new,monospace">
<br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">Alguém tem alguma sugestão?</span><br style="font-family:trebuchet ms,sans-serif">
<br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">Grato.<br>Walmes.<br style="font-family:trebuchet ms,sans-serif"></span><font style="font-family:trebuchet ms,sans-serif" face="trebuchet ms,sans-serif"><br clear="all">
</font><span style="font-family:trebuchet ms,sans-serif">==========================================================================</span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">Walmes Marques Zeviani</span><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W)</span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">Departamento de Estatística - Universidade Federal do Paraná</span><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">fone: <a href="tel:%28%2B55%29%2041%203361%203573" value="+554133613573" target="_blank">(+55) 41 3361 3573</a></span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">VoIP: (3361 3600) 1053 1173</span><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">e-mail: <a href="mailto:walmes@ufpr.br" target="_blank">walmes@ufpr.br</a></span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">twitter: @walmeszeviani</span><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">homepage: <a href="http://www.leg.ufpr.br/%7Ewalmes" target="_blank">http://www.leg.ufpr.br/~walmes</a></span><br style="font-family:trebuchet ms,sans-serif">
<span style="font-family:trebuchet ms,sans-serif">linux user number: 531218</span><br style="font-family:trebuchet ms,sans-serif"><span style="font-family:trebuchet ms,sans-serif">==========================================================================</span><br style="font-family:trebuchet ms,sans-serif">