Hi Pedro,
I cannot write accents because the file encoding seems to be wrong.
In addition, Drupal clean up first white spaces in my file by default so I cannot do things like to paint a logo at the top of the file.
Thank you a lot.

Comments

pcambra’s picture

Status: Active » Postponed (maintainer needs more info)

Have you tried dev versions? there is a fix there for the encoding problems.

Being a plain textfile, I don't see how you plan to insert there an image

Robin Millette’s picture

An image? ASCII art rules! Or should we call it Unicode art? Anyhow, I guess that's what he means by painting a logo and that the whitespace got cleanup up, messing with his creativity.

sergio.cerrutti’s picture

I mean an ASCII logo, as Robin said.
Anyway, I don't remember the version that I've used, I'll try the dev version next time.

Thx Pedro.

kryzamatt’s picture

Same problem here.

To get it working, I made a little change in the humanstxt.module file, line 53. The idea is to specify the content type's charset. As you can see, I just added 'charset=utf-8' right after 'text/plain;' :

/**
 * Callback to display humans.txt file.
 */
function humanstxt_file() {
	$content = array();
 	$content[] = _humanstxt_get_content();

	// Trim any extra whitespace and filter out empty strings.
	$content = array_map('trim', $content);
	$content = array_filter($content);
  
	drupal_add_http_header('Content-type', 'text/plain; charset=utf-8');
	echo implode("\n", $content);
	exit;
}
pcambra’s picture

Status: Postponed (maintainer needs more info) » Needs work

I'm happy to include this, would you submit a patch?

pcambra’s picture

Status: Needs work » Fixed

Removed a couple of lines that trimmed the spaces so ascii artists are happy.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Issue summary: View changes