Page Index Toggle Pages: [1] 2 3 
Topic Tools
Very Hot Topic (More than 25 Replies) utf-8 support (Read 21,668 times)
Captain John
Ex Member


Re: utf-8 support
Reply #37 - Feb 8th, 2008 at 12:44am
Post Tools
Welcome ...
  
Back to top
 
IP Logged
 
DarkWolf84
YaBB Newcomer
*
Offline



Posts: 21
Location: Bulgaria
Re: utf-8 support
Reply #36 - Feb 7th, 2008 at 11:10pm
Post Tools
Thank you verry much.
  
Back to top
GTalk  
IP Logged
 
Captain John
Ex Member


Re: utf-8 support
Reply #35 - Feb 5th, 2008 at 10:13pm
Post Tools
That fix has been added to the CVS and is included in the YaBB 2.2 Release Bug Fixes and Updates  and will be part of the Y2.2.1 Release.
  
Back to top
 
IP Logged
 
DarkWolf84
YaBB Newcomer
*
Offline



Posts: 21
Location: Bulgaria
Re: utf-8 support
Reply #34 - Feb 5th, 2008 at 11:05am
Post Tools
Will that patch be added to the official patches or will be only a mod. I need this for my new forums. I can help with what I can. I don't want to patch my forums manually after every bugfix Cry
  
Back to top
GTalk  
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: [help] who no style or colors on the page?
Reply #33 - Jan 6th, 2008 at 6:48pm
Post Tools
lidaof wrote on Dec 27th, 2007 at 6:00am:
i solve the problem above
another problem comes...
why chinese characters display as wrong character? Smiley

http://www.yabbforum.com/community/YaBB.pl?num=1196639581 ; Wink
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
DarkWolf84
YaBB Newcomer
*
Offline



Posts: 21
Location: Bulgaria
Re: utf-8 support
Reply #32 - Jan 6th, 2008 at 6:24pm
Post Tools
Maybe you have used the default encoding before using the utf8 one. It makes that.
  
Back to top
GTalk  
IP Logged
 
lidaof
YaBB Newcomer
*
Offline



Posts: 7
Re: [help] who no style or colors on the page?
Reply #31 - Dec 27th, 2007 at 6:00am
Post Tools
i solve the problem above
another problem comes...
why chinese characters display as wrong character? Smiley
« Last Edit: Dec 27th, 2007 at 6:07am by lidaof »  

yabb2.JPG (Attachment deleted)
Back to top
 
IP Logged
 
DarkWolf84
YaBB Newcomer
*
Offline



Posts: 21
Location: Bulgaria
Re: Problem with utf8 encoding
Reply #30 - Dec 19th, 2007 at 2:33am
Post Tools
Thanks a lot. I think that will help. Don't worry about utf-8 encoding I  already have utf-8 langpack.
Edited:
It seems that this pach is for 2.1 mine is 2.2. Too bad I have to install it manualy.
« Last Edit: Dec 19th, 2007 at 5:24am by DarkWolf84 »  
Back to top
GTalk  
IP Logged
 
Captain John
Ex Member


Re: Problem with utf8 encoding
Reply #29 - Dec 19th, 2007 at 2:04am
Post Tools
These "might" help you ...

http://www.yabbforum.com/community/YaBB.pl?num=1181806630/7#7
This patch only fixes improper early utf-8 string cutting in some places. Before dealing with this patch You should first get your forum working in utf-8 encoding. To do so You first need some langpack in utf-8.  only change $yycharset value from iso-8859-1 to utf-8 in Main.lng and Admin.lng. Also your server should respond with utf-8 charset in HTTP headers. How to do this should know your server administrator. When You get right encoding autodetecting by browser, then You can apply this patch either manually (add lines, that begins with +, remove lines, that begins with -, and leave as is lines, that begins with space), with command patch (widely available on various unix-based platforms)

utf-8 Support
http://www.yabbforum.com/community/YaBB.pl?num=1181806630/0
  
Back to top
 
IP Logged
 
DarkWolf84
YaBB Newcomer
*
Offline



Posts: 21
Location: Bulgaria
Problem with utf8 encoding
Reply #28 - Dec 19th, 2007 at 1:21am
Post Tools
I have a problem with utf8 encoding on my forums. In the main index in "last post" the sliced text sometimes not contain the all of the last character (maybe only the first byte is read).
« Last Edit: Dec 19th, 2007 at 1:22am by DarkWolf84 »  
Back to top
GTalk  
IP Logged
 
Captain John
Ex Member


Re: utf-8 support
Reply #27 - Dec 27th, 2007 at 6:39pm
Post Tools
Has a MOD been written for this .. ???
  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: utf-8 support
Reply #26 - Oct 28th, 2007 at 6:45pm
Post Tools
Thanks ... a lot clearer now... and yes.. I was trying to unzip ...

MishDan .... you ought to take this MOD you created and Post it here ..

http://www.boardmod.org/yabb/YaBB.pl?board=beta_y2 ;   Just start a New Topic and identify your MOD (especially note it is for 2.2) and write a short description what it does, then attach the zip file to it.   Great place to share your work, with others that might need it.

Couldn't attach here in this forum, attachment folder full ..

I zipped your MOD for you... you can download it here:
StringCutter MOD

You should also consider putting the above script, utf-8 mail in MOD format and posting on BoardMOD also ...
« Last Edit: Oct 29th, 2007 at 4:00am by »  
Back to top
 
IP Logged
 
MishDan
Full Member
***
Offline



Posts: 228
Location: Kyiv, Ukraine
Re: utf-8 support
Reply #25 - Oct 28th, 2007 at 7:19am
Post Tools
Use the third attached patch (attached to http://www.yabbforum.com/community/YaBB.pl?num=1181806630/7#7):
http://www.yabbforum.com/yabbfiles/Attachments/yabb-2_2-utf_8-3_patch.zip

It is not zipped, because I have no zip on work machine at the time of that writing, simply remove zip extension and use it as text file. I named it .zip to match allowed file type.
Also, IIRC, it is in unix format - line ends are "\n" instead of "\r\n" as it is in Windows.

+# is the same as +. But can be skipped, since only adds commented (unused) line.

@@ -xx,yy +zz,aa @@
means file position of next patch chunk. xx is position in unchanged file, yy is number of lines, that that chunk contains. zz is position of chunk in changed file, and aa is line count that resulting code will occupy.

Also here (http://www.yabbforum.com/community/YaBB.pl?num=1181806630/14#14) is that patch in mod format (again not zipped Smiley ):http://www.yabbforum.com/yabbfiles/Attachments/yabb-2_2-utf_8-3_mod_001.zip

Also, if You use 2.1, please, pay attention to discussion on this page - it contains changes, needed to work with 2.1 and mail encoding fix, backported from 2.2 to 2.1.
« Last Edit: Oct 28th, 2007 at 7:28am by MishDan »  

P.S. Sorry, my English is not so good, as I wish
Back to top
WWWGTalkICQ  
IP Logged
 
Captain John
Ex Member


Re: utf-8 support
Reply #24 - Oct 28th, 2007 at 2:37am
Post Tools
The attachment you placed here: http://www.yabbforum.com/community/YaBB.pl?num=1181806630/#14
seems to be corrupt .. tried a couple times to download and unzip, but no luck.
Also .. understand the + -  (space) in your code.. but what is this for

@@ -911,11 +911,22 @@   and   +#



  
Back to top
 
IP Logged
 
MishDan
Full Member
***
Offline



Posts: 228
Location: Kyiv, Ukraine
Re: utf-8 support
Reply #23 - Oct 27th, 2007 at 10:37pm
Post Tools
This patch only fixes improper early utf-8 string cutting in some places. Before dealing with this patch You should first get your forum working in utf-8 encoding. To do so You first need some langpack in utf-8. I don't know, if Chinese langpack exist, and which encoding it uses, but basically You can use English langpack, only change $yycharset value from iso-8859-1 to utf-8 in Main.lng and Admin.lng. Also your server should respond with utf-8 charset in HTTP headers. How to do this should know your server administrator. When You get right encoding autodetecting by browser, then You can apply this patch either manually (add lines, that begins with +, remove lines, that begins with -, and leave as is lines, that begins with space), with command patch (widely available on various unix-based platforms), or with boardmod utility.
I recommend first consult in the Chinese support board - maybe, all that is unnecessary.
  

P.S. Sorry, my English is not so good, as I wish
Back to top
WWWGTalkICQ  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 
Topic Tools
 
  « Board Index ‹ Board  ^Top