OpenPHPNuke PRO
|
Download
|
Project
|
Documentation
|
Demo
|
Imprint
Article
Forum
Sitemap
Guestbook
Home
Community
Communication
Development
Last Postings
Topic
Views
Replies
by
Date
Cheap Lebron 11 Galaxy superio...
tte
6276
1
2018-02-23 06:47
Jordan 4 do not receive the re...
Lebron 11 Kings Pride the idea of foreign aid selection in fact, this argument is not groundless, the super frontcourt really are looking for a strong Brazilian striker, this trend also indicates Loew...
5184
0
tracywlsonn44
2015-01-16 03:54
Dwyane Wade Shoes to create th...
Hyperdunks 2013 if they can qualify to the same group and Shandong Luneng. Urawa Red Diamonds will go into Group G, if national security through qualifying, will work with its same group, J1 League Ka...
4926
0
lesliecfuen33
2015-01-16 03:29
Lebron Zoom Soldier VI with th...
Kobe Grinch playoff opponent is just up the mountain on the J1 Yamagata Yamagata Yamagami J2 League ranked only the first six, but in the upgrade playoff not even g Iwata joy and JEF promoted to J1 Le...
4612
0
rashidathom22
2015-01-16 02:56
Hot Hyperdunk 2013 Preview won...
Kobe 8 Grinch Zhao Xuri Perrin national team playing in the game is not a lot of opportunity for another group of them, Binbin, Yang ultrasound is new, they are Olympic team teenager. Before Perrin al...
4784
0
carltonking11
2015-01-16 02:13
Forum
Moderated by:
Forum Index
OpenPhpNuke
Improve OPN
charset for htmlentities() calls
Author
charset for htmlentities() calls
tgr4ripe
Joined: October 30, 2004
Posts: 3
charset for htmlentities() calls
Posted: 2004-11-17 05:23
Is it possible to add a config variable that would specify output html charset ? I installed OPN for site where main language is russian (use CP1251 charset) and it would be usefull if htmlentities calls used non-default charset. For example I had to change every call htmlentities($some_variable) to htmlentities($some_variable, ENT_COMPAT, 'cp1251').
Now if someone wants to use OPN with default html charset it should be easy enough. Would be nice if $opnConfig['HtmlCharset'] existed somewhere and was configurable and subsequenly used as an argument in appropriate function calls.
xweber
Joined: April 14, 2003
Posts: 135
Posted: 2004-11-17 10:59
I will have a look at that...
Alex
tgr4ripe
Joined: October 30, 2004
Posts: 3
charset for htmlentities() calls
Posted: 2004-11-21 06:03
Ok, I found that in Admin->Settings-Graphics there is a drop down selection list for html
charset that sets opnConfig['opn_charset_encoding']. I added couple lines there to include
cyrillic charset 'cp1251' and modified lines like
../opn2/html/class/class.opn_output.php:426: echo '<meta http-equiv="content-Type" content="text/html; charset=ISO-8859-1" />'._OPN_HTML_NL;
to use value of $opnConfig['opn_charset_encoding'] instead of hardcoded value of ISO-8859-1 as well as htmlentities calls to use it.
Do you guys think it would be worthwhile to incorporate this approach in further developments ? I think OPN is a great CMS (I liked the clean and non-kludgy style of coding not to metnion good security track) and it would be nice to see some internatinalization support.
xweber
Joined: April 14, 2003
Posts: 135
Posted: 2004-11-21 11:46
of course do we want to have a good internationalisation.
If you have changed some code, you can send it to me and after a review i will incorparate it.
Alex
Unregistered User
charset for htmlentities() calls
Posted: 2012-03-21 04:32
Magnificent items from you, man. I have take into accout your stuff pveirous to and you're simply extremely magnificent. I actually like what you've bought right here, really like what you're saying and the way in which by which you say it. You make it enjoyable and you still care for to stay it smart. I can not wait to read far more from you. This is actually a great web site.
sort by
ascending
descending
Previous thread:
How to contribute
Next Thread:
Nike FlyKnit Trainer Womens They know the pieces
Jump To:
Select a Forum
General
Bugs
Off Topic
Improve OPN
Testforum
General
OPN Installation
OPN Language
Upgrade to OPN
OPN Themes
OPN Administration
Documentation
...step in and say hello
Nickname:
eMail
Message:
Quick posting form
Normal posting form
Security Code
Enter security code here
Page took 0.09590 seconds to load