OpenPHPNuke PRO
|
Download
|
Project
|
Documentation
|
Demo
|
Imprint
Article
Forum
Sitemap
Guestbook
Home
Community
Communication
Development
Last Postings
Topic
Views
Replies
by
Date
Ja lebt denn ...
OPN noch ??? Will heißen, ist noch jemand am entwickeln ? Was ist über operative Sites bekannt ?
738
0
2012-11-01 23:38
OPN installed... what next?
Hmm.. I guess this level is necessary if you might be swihtcing versions in the transition, but I think you should be able to just take a mysqldump of the old DB and populate the database on the new s...
68150
4
2012-09-06 14:51
Admin login
Wow! Great to find a post with such a clear msesgae!
(Page
1
2
)
36064
14
2012-09-06 01:00
Not sure what happened Home pa...
Thank you so much Thank you so much Ali for sharing such pecirous tutorials with us, may be it took a long time for you to learn these things a huge search too. But you are guiding us from your exp...
113110
7
2012-09-05 21:20
Translation Required
Wow, that's a relaly clever way of thinking about it!
80543
6
2012-09-05 20:38
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: 137
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: 137
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
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.18648 seconds to load