TrelloExport icon indicating copy to clipboard operation
TrelloExport copied to clipboard

HTML exporting worng charset

Open alansenairj opened this issue 3 years ago • 5 comments

Output HTML export file function is writing down all ISO 8559-1 chars instead UTF-8. I'm using Ubunt 21.04, both Chrome and Firefox browsers. Page loads fine but export result file is poluted by substituitions.

alansenairj avatar Jun 09 '21 02:06 alansenairj

@alansenairj can you show me an example?

trapias avatar Jun 24 '21 07:06 trapias

Yes. The problem is markdown conversion when someone put code on Trello card. Export Results:

image

Original card:

image

Markdown text:

Comandos Básicos do GIT

Iniciar um repositório

Esse comando irá transformar um diretório simples em um repositório git.

$ git init

Git config

É possível alterar algumas configurações do git como o editor, paginador, usuário, email, seguem alguns exemplos:

Para alterar as configurações para todos os repositórios utilizar a flag --global após a opção config

Mudando o paginador do comando "less" para o comando "cat" $ git config core-pager cat

Mudando as informações de usuário

alansenairj avatar Jun 24 '21 12:06 alansenairj

II'm using python to convert markdown export instead HTML.

alansenairj avatar Jun 24 '21 12:06 alansenairj

@alansenairj will try to understand what I can do; if you open the resulting HTML in the browser isn't it properly shown? Eventually tell us what're doing with python, maybe the trick can help somebody else :-)

trapias avatar Jun 24 '21 13:06 trapias

Yes. It shows wrong caracters cause conversion from markdown are not working well. When some one put a code on Trello markdown uses ''' for exemple. Parsing code from a card using some markdown quotation to represent that code is doing wrong output as I showed on last post. I'm doing a conversion from your export in markdown format and then using python module for better results. It is a simple code.

import markdown file = input(" digite o nome do arquivo" ) markdown.markdownFromFile(input= file, output='IAC.html' )

Using this module I'm get rid of ISO 8559-1 chars and codes apears more cleaner but I need to mount HTML tags to represent yaml identation.

image

HTML export cannot deal with codes written in Trello cards. That's the problem.

alansenairj avatar Jun 24 '21 14:06 alansenairj