calling $context['character_set'] in Post.php

Started by CapriSkye, May 15, 2005, 03:27:18 PM

Previous topic - Next topic

CapriSkye

There is a problem with utf-8 encoding when quoting, the popup window will not set itself to utf-8 encoding, but manually adding <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> to QuoteFast function will make it so.
but i don't think that's the best way to do it, so is it possible to call $context['character_set'] in meta like this? <meta http-equiv="Content-Type" content="text/html; charset='$context['character_set']'" />
thanks!

[Unknown]

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />

-[Unknown]

CapriSkye

that works, thanks [unknown]
would the dev consider adding this to future release?

farhaddad

where can i find this to edit it ? i have the same problem

thanks

CapriSkye

/Sources/Post.php
Find:

<title>', $txt['retrieving_quote'], '</title>


Add below:

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
// if above doesn't work, consider hardcoding the encoding
// <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

farhaddad

#5
thanks for replying I added this but i get this error when i try to post or reply

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/content/c/r/e/creations4d/html/anadeal/forum/Sources/Post.php on line 1759

any i dea

EDIT: never mind solved i forgot to comment the other line

thanks alot

Sheepy

I've made things easier for everyone with a mod... that I didn't border to release before.

http://mods.simplemachines.org/index.php?mod=184

(Now?  Now I'm recycling redundent mod request I made before.  And I quote the recycled link more then others...)

Advertisement: