Page Index Toggle Pages: 1 ... 4 5 [6] 7 8 ... 15 ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Conversion (Read 45807 times)
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #75 - Aug 25th, 2017 at 11:13am
Mark & QuoteQuote  
Forget the conversion. I have made a mistake. It worked.

What is not yet working properly is the language conversion. Here was converted correctly to ISO,

http://yabbtest.de/cgi-bin/yabb2/YaBB.pl?num=1248439145/2#2

But not here.

http://yabbtest.de/cgi-bin/yabb2/YaBB.pl?num=1264357835/0#

Edited:
I tried to change the post, because there was an error message. Again, and then all characters were shown correctly according to ISO.


It's strange, what's going on.

The error message had to do with this. Here was not converted to ISO and I can not change it either.

http://yabbtest.de/cgi-bin/yabb2/YaBB.pl?board=Ukraine

error message:

Quote:
Ein Fehler ist aufgetreten. Wide character in print at ./Sources/Subs.pm line 300.


So we can say the conversion works,
The ConvertLang does not yet. The error could however occur at the forum by a wrong character. This is now to be found.

I think I got it. Anywhere where on the main page this character is, can not be converted.

e.g.:

Quote:
Scam aus Russland, versuchter & erfolgreicher Scam
Geldwäsche mit Muli
Bride-Scam only


Quote:
Ukrainische Scammer, Translationscam, versuchter & erfolgreicher Scam
Bride-Scam only


I've tried to change it, no chance.
I think I'll make it directly on the server, which should work. What is your opinion?

Quote:
Ein Fehler ist aufgetreten. Use of uninitialized value $category in string ne at /var/www/vhosts/yabbtest.de/cgi-bin/yabb2/Admin/ManageBoards.pm line 1454.
 
« Last Edit: Aug 25th, 2017 at 12:40pm by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #76 - Aug 25th, 2017 at 12:53pm
Mark & QuoteQuote  
Let's go to the members area:
Here is sorted initially by date of registration. OK.
I go on sorting by posts, this works.
I go to name or position, I get the following error:

Quote:
Ein Fehler ist aufgetreten. Use of uninitialized value $INFO{"sort"} in string eq at /var/www/vhosts/yabbtest.de/cgi-bin/yabb2/Sources/Memberlist.pm line 142.


I can not go back to the registration date, unless I click on the TAB for members.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #77 - Aug 25th, 2017 at 3:09pm
Mark & QuoteQuote  
pyragony54 wrote on Aug 25th, 2017 at 11:13am:
What is not yet working properly is the language conversion. Here was converted correctly to ISO,


Um - we're converting to UTF-8.
I actually got the error from http://yabbtest.de/cgi-bin/yabb2/YaBB.pl?num=1264357835/0# to show up on my test install. It looks like there's something in that file that the Perl encode/decode couldn't handle - the converted output actually looked like it had been processed multiple times. However, when I opened the original file from ConvertLang/Messages and converted it to UTF-8 using Notepad++, that worked. (I'm still trying to find the character(s) that messed up.)

This is one of the reasons I recommend keeping the ConvertLangs data intact until you're absolutely sure everything converted okay.

All the '&' showing in the browser should be being converted to '&' . You should be able to check by looking at the 'Page source' through your browser. (And it was all good when I looked)


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #78 - Aug 25th, 2017 at 3:19pm
Mark & QuoteQuote  
Just uploaded the new Sources/Memberlist.pm to the SVN.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #79 - Aug 25th, 2017 at 3:30pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2017 at 3:09pm:
you're absolutely sure everything converted okay.



Check it out
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #80 - Aug 25th, 2017 at 3:54pm
Mark & QuoteQuote  
I'm looking into the conversion issue for that one post. The complicating factor is  ISO-8859-1/ansi isn't rendered as true ISO-8859-1 by browsers. They call it ISO-8859-1 or ansi but it's actually win-1252 which is just enough different to make things horribly complicated. And Perl's encode/decode doesn't handle win-1252 at all well when told to use that encoding instead of ISO-8859-1.

Officially there should be only a few differences between win-1252 and ISO-8859-1 but the official list of differences doesn't reflect reality as the rest of us know it.

My current list of things that don't convert right:
Code
Select All
sub ansi {
     my ($line) = @_;
     $line =~ s/\x20AC/€/gxsm;
     $line =~ s/\x82/‚/gxsm;
     $line =~ s/\x83/ƒ/gxsm;
     $line =~ s/\x84/„/gxsm;
     $line =~ s/\x85/…/gxsm;
     $line =~ s/\x86/†/gxsm;
     $line =~ s/\x87/‡/gxsm;
     $line =~ s/\x88/ˆ/gxsm;
     $line =~ s/\x89/‰/gxsm;
     $line =~ s/\x8a/Š/gxsm;
     $line =~ s/\x8b/‹/gxsm;
     $line =~ s/\x8c/Œ/gxsm;
     $line =~ s/\x8e/Ž/gxsm;
     $line =~ s/\x91/‘/gxsm;
     $line =~ s/\x92/’/gxsm;
     $line =~ s/\x93/“/gxsm;
     $line =~ s/\x94/”/gxsm;
     $line =~ s/\x95/•/gxsm;
     $line =~ s/\x96/–/gxsm;
     $line =~ s/\x97/—/gxsm;
     $line =~ s/\x98/˜/gxsm;
     $line =~ s/\x99/™/gxsm;
     $line =~ s/\x9a/š/gxsm;
     $line =~ s/\x9b/›/gxsm;
     $line =~ s/\x9c/œ/gxsm;
     $line =~ s/\x9e/ž/gxsm;
     $line =~ s/\x9f/Ÿ/gxsm;
     $line =~ s/\xA0/ /gxsm;
     $line =~ s/\xe9/é/gxsm;
     $line =~ s/\xa9/©/gxsm;
     return $line;
 } 



The above list was gleaned from one of my other boards where I know for a fact that people directly copy and paste from Word for Windows.

I'm betting there's at least one more for the list in that post.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #81 - Aug 25th, 2017 at 4:35pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2017 at 3:19pm:
Just uploaded the new Sources/Memberlist.pm to the SVN.


Unfortunately does not work. Always jumps back to the registration date.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #82 - Aug 25th, 2017 at 6:13pm
Mark & QuoteQuote  
When MemberList starts throwing weird errors - rebuild the memberlist (That's working.)

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #83 - Aug 25th, 2017 at 6:25pm
Mark & QuoteQuote  
It does not work. Convince yourself in the test forum
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #84 - Aug 25th, 2017 at 6:33pm
Mark & QuoteQuote  
So I have now a very stupid question:
Can not you do it the way it was before? That one can decide with the settings whether ISO or UTF? Just as it was before? This has proven itself well.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #85 - Aug 25th, 2017 at 6:53pm
Mark & QuoteQuote  
The decision was made to finally convert all of YaBB to UTF-8 because then everybody can read what the Russians are writing when the Russian Language pack is installed and they're using it and you're not. (Also, it will be needed when YaBB finally gets all the data into proper databases.)

From what I can tell without running a full blown html checker on the testbed forum, that one message is the one with issues. When looking at the raw text, it looks okay. But perl says it's not okay. Also, there are characters in the converted text that should have been converted to html entities but weren't.  Sad So I'm tracking down some other possible fixes.

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #86 - Aug 25th, 2017 at 6:56pm
Mark & QuoteQuote  
pyragony54 wrote on Aug 25th, 2017 at 6:25pm:
It does not work. Convince yourself in the test forum

I rebuilt the memberlist and now it's not throwing errors for me. (But don't try rebuilding notices - that's still doing bad things.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #87 - Aug 25th, 2017 at 7:31pm
Mark & QuoteQuote  
A fix for the weirdness in that one file:

In Subs.pm find
Code (Perl)
Select All
         print $output or croak "$croak{'print'} output"; 



add above it
Code
Select All
        $output =~ s/[^\x00-\xFF]//gxsm;
  



This strips out any characters that didn't convert properly. (And chances are, we were looking at a hidden character that shouldn't have been there in the first place.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Conversion
Reply #88 - Aug 25th, 2017 at 10:02pm
Mark & QuoteQuote  
The problem of Rebuild Notices is driving me buggy - I've just taken a backup of BoardMod so I can use that data to do more testing. (Another big forum, lots of members and probably lots of notices.)

On the online Strict 2.7 Build - not enough members to test and that one only has a couple of boards with board notices and those don't process at all.  Angry
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Conversion
Reply #89 - Aug 26th, 2017 at 3:01am
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2017 at 7:31pm:
his strips out any characters that didn't convert properly. (And chances are, we were looking at a hidden character that shouldn't have been there in the first place.)


Done.


  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 4 5 [6] 7 8 ... 15
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Conversion

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry