Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support i tried to solve my language problem but.. :(
1 2
Em130303
Posted on 12 Sep 2009, 12:48:48

Access: Member
Total Posts: 4
Joined: 2009-09-12

hi everyone, i just found this perfect site while searching on google, N-13 News is really great; compact and fast; but i have encoding problems with this script.I'm not able to display some chars in the news and on the topics.

I tried to solve my problem with following the steps on this topic but it did not work.My language is Turkish and i want to display ŞĞÜİÇÖ,şğüçö and ı (without point : i) thank you very much.have a nice day.


#846
Chris
Posted on 12 Sep 2009, 13:35:39

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'm current trying to fix this, I'll post here later once it's fixed.
#847
Chris
Posted on 12 Sep 2009, 13:48:43

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

On the page where you are displaying your news, add this to the head section of your page

Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
#848
Em130303
Posted on 12 Sep 2009, 14:04:27

Access: Member
Total Posts: 4
Joined: 2009-09-12

thank you very much Chris but i tried that, when i change 8859-9 to utf-8 i'm not able to see the other Turkish chars on my site.Is there another way to just change the encoding of the script not entire page ?

Thanks!
#849
Chris
Posted on 12 Sep 2009, 14:11:02

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Try this, if you edit the index.php file, and just below the first line add this

Code:
header('Content-Type: text/html; charset=utf-8');

So it should look like

Code:
<?php
header('Content-Type: text/html; charset=utf-8');
#850
Em130303
Posted on 12 Sep 2009, 14:31:12

Access: Member
Total Posts: 4
Joined: 2009-09-12

Warning : Cannot modify header information - headers already sent by (output started at public_html/v1/index.php:9) in <b>public_html/haberler/index.php</b> on line 2

haberler/index.php -> N-13 News script
v1/index.php -> My main site (it does not inclued any header information, i just delete it.)

also i tried adding "header('Content-Type: text/html; charset=utf-8');" on top of my index.php and deleting it from N-13 News script but result is the same.

Sorry for bothering you :new_undecided:
#851
Chris
Posted on 12 Sep 2009, 14:38:47

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Placing the

Code:
header('Content-Type: text/html; charset=utf-8');

after ob_start(); gets rid of the error but it doesn't fix the language issue.

I'm not sure it's possible to use multiple language charsets within the same page. The other other way I can think to get around this would be to use an iframe but this isn't ideal.
#852
Em130303
Posted on 12 Sep 2009, 14:41:50

Access: Member
Total Posts: 4
Joined: 2009-09-12

Thank you very much for your suggestions Chris.I'll give it a try.Have a nice day.:wink:
#853
Ljhelbo
Posted on 16 Oct 2009, 20:19:43

Access: Member
Total Posts: 8
Joined: 2009-10-14

I think I found a solution. At least it works for me. My site is Danish and usually I am using

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

in my header-file. That worked fine, until I enabled html in my news-stories (I did that because i wanted to float images to the left or right within the story).

But as a result, my special Danish characters æ. ø and å were displayed as something like æøåÆØÃ. The problem is that they are entered into the database as utf-8 and read out as iso-8859-1.

So what I did was to change line 25 in admin.php into:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

as well. Of course this will only work on future postings - or I will have to repost all old news. But it works with danish, so probably also for Turkish?
#995
Chris
Posted on 16 Oct 2009, 20:25:33

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

That may indeed work, I appreciate you trying to help others out. On a relataed note, you can float images without having to enable html, using the [left][/left]
tags

These simply wrap whatever is inside within a div then floats the div.
#996
Last edited by Chris at 2009-10-16 20:26:07 Reason:
1 2
Network-13.com © 2013