Home | Webstore
Latest News: OOTP 25 Pre-Order - FHM 10 Available - OOTP Go! Available

Out of the Park Baseball 25 Pre-Order Now!

  

Go Back   OOTP Developments Forums > Out of the Park Baseball 22 > OOTP 22 - General Discussions

OOTP 22 - General Discussions Everything about the brand new 2021 version of Out of the Park Baseball - officially licensed by MLB and the MLBPA.

Reply
 
Thread Tools
Old 07-20-2021, 05:09 PM   #1
ronnieh
Minors (Rookie Ball)
 
Join Date: Apr 2015
Posts: 44
Spanish letters in Reports

We just converted our online league to 22 this weekend. I generated and uploaded reports for the first time on 22. All of the Spanish characters in the uploaded reports are "corrupted" for lack of a better word. For instance, Jose Gonzalez name looks like José Gonzáles

Has anyone experienced this or have thoughts on a setting that might need to get tweeked?
ronnieh is offline   Reply With Quote
Old 07-20-2021, 07:40 PM   #2
ronnieh
Minors (Rookie Ball)
 
Join Date: Apr 2015
Posts: 44
I'll answer my own question here in case anyone else comes across this. Solution is copying Templates folder from data to league folder, modifying the head_bits.tpl file and adding a meta tag:

<meta charset="UTF-8" />
ronnieh is offline   Reply With Quote
Old 08-01-2021, 10:49 AM   #3
brotherblues
All Star Reserve
 
Join Date: Nov 2020
Posts: 658
Quote:
Originally Posted by ronnieh View Post
I'll answer my own question here in case anyone else comes across this. Solution is copying Templates folder from data to league folder, modifying the head_bits.tpl file and adding a meta tag:

<meta charset="UTF-8" />
So just adding that line makes all the weird names go away? And you just discovered and did that on your own?
brotherblues is offline   Reply With Quote
Old 08-16-2021, 02:04 AM   #4
mtopham
Minors (Double A)
 
mtopham's Avatar
 
Join Date: Mar 2007
Location: around the corner from Mays Field
Posts: 193
Can there be some confirmation on this? It has annoyed the s**t out of me for years!
__________________
Mike Topham
- Aurora Borealis - PEBA
mtopham is offline   Reply With Quote
Old 08-19-2021, 04:31 AM   #5
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Thank you, ronnieh. This is indeed a fix for this problem especially for older leagues or for leagues with custom tpl files, who have an extra folder /templates inside the league folder.
OOTP 22 comes with a template file head_bits.tpl which contains these lines:

PHP Code:
<meta name="content-language" content="en-us">
<
meta name="content-type" content="text/html;charset=UTF-8"

This works for me when testing with spanish and other letters.
If you have problems with those letters, make sure that your file /templates/head_bits.tpl contains that UTF-8 line. Also check your league folder: if there's a sub folder /templates, then this league uses it's own templates and you'll need to update them (if you want to use the default templates which came with OOTP 22, just rename or delete that custom folder).

Last edited by Andreas Raht; 08-19-2021 at 04:32 AM.
Andreas Raht is offline   Reply With Quote
Old 08-25-2021, 08:54 PM   #6
byzeil
All Star Starter
 
byzeil's Avatar
 
Join Date: Aug 2009
Location: NJ, US
Posts: 1,979
I am getting the same thing in my HTML reports. The league is an old league but it does NOT have a template folder in the league folder and template folder above the league folder has the head_bits.tpl file with the two lines mentioned above.

Anyone have any other suggestions to fix this?
__________________
Quote:
"Sometimes knowing too much about what goes on under the hood takes away from the experience of playing the game" - CBeisbol 11/25/2020
Commissioner(2013-) of the Moneyball Union(tMBU, online league) in our 78th season (est RL 2004)
byzeil is offline   Reply With Quote
Old 08-26-2021, 04:37 AM   #7
Andreas Raht
Administrator
 
Andreas Raht's Avatar
 
Join Date: Jun 2002
Location: Hollern/Stade/Germany
Posts: 8,992
Quote:
Originally Posted by byzeil View Post
I am getting the same thing in my HTML reports. The league is an old league but it does NOT have a template folder in the league folder and template folder above the league folder has the head_bits.tpl file with the two lines mentioned above.

Anyone have any other suggestions to fix this?

Does the resulting HTML page also have the "UTF-8" line in the header, when you look at the source code of the page?


Problem could be that the player name is saved in an old format. Can you edit the player name and copy/paste the correct letters into OOTP and see if that fixes it for this player?
Andreas Raht is offline   Reply With Quote
Old 08-26-2021, 11:17 PM   #8
mtopham
Minors (Double A)
 
mtopham's Avatar
 
Join Date: Mar 2007
Location: around the corner from Mays Field
Posts: 193
I'm having the same issue - the template file has the correct code, and player names are correct in the editor, yet the web pages are still a mess...
__________________
Mike Topham
- Aurora Borealis - PEBA
mtopham is offline   Reply With Quote
Old 08-27-2021, 03:17 PM   #9
byzeil
All Star Starter
 
byzeil's Avatar
 
Join Date: Aug 2009
Location: NJ, US
Posts: 1,979
Yes the template file has the code, the index.html on the website has the code and in-game the player name is correct.
Attached Images
Image Image Image 
__________________
Quote:
"Sometimes knowing too much about what goes on under the hood takes away from the experience of playing the game" - CBeisbol 11/25/2020
Commissioner(2013-) of the Moneyball Union(tMBU, online league) in our 78th season (est RL 2004)
byzeil is offline   Reply With Quote
Old 08-27-2021, 03:55 PM   #10
mtopham
Minors (Double A)
 
mtopham's Avatar
 
Join Date: Mar 2007
Location: around the corner from Mays Field
Posts: 193
We, too, continue to see the names all mucked up - we copied the template folder as mentioned above and our file has the UTF-8 code in it as well, yet the newly generated reports still have the names all messed up.

Such as Pablo
__________________
Mike Topham
- Aurora Borealis - PEBA
mtopham is offline   Reply With Quote
Old 08-27-2021, 04:03 PM   #11
silverwolf
Minors (Double A)
 
Join Date: Sep 2012
Posts: 186
Try adding exactly the tag below to the HTML files (not the existing one with <meta name="content-type" content="text/html;charset=UTF-8">), and the accented characters should show up. It's worked for many leagues I've helped out.


Code:
<meta charset="utf-8">
This is HTML5 format for charset encoding, see https://www.thoughtco.com/meta-chars...-html5-3469066

This isn't a fix for older leagues or ones with custom templates, it's needed in OOTP22 reports unless you have a web server that's adding additional information.
__________________
StatsPlus - Desktop tool for OOTP real-time sim integration with Slack (Windows, Mac, and Linux)
USBA - OOTP online promotion/relegation league

Last edited by silverwolf; 08-27-2021 at 04:14 PM.
silverwolf is offline   Reply With Quote
Old 08-27-2021, 04:13 PM   #12
byzeil
All Star Starter
 
byzeil's Avatar
 
Join Date: Aug 2009
Location: NJ, US
Posts: 1,979
Quote:
Originally Posted by Andreas Raht View Post
Problem could be that the player name is saved in an old format. Can you edit the player name and copy/paste the correct letters into OOTP and see if that fixes it for this player?
Tried editing the player name and made no difference
__________________
Quote:
"Sometimes knowing too much about what goes on under the hood takes away from the experience of playing the game" - CBeisbol 11/25/2020
Commissioner(2013-) of the Moneyball Union(tMBU, online league) in our 78th season (est RL 2004)
byzeil is offline   Reply With Quote
Old 08-27-2021, 04:48 PM   #13
byzeil
All Star Starter
 
byzeil's Avatar
 
Join Date: Aug 2009
Location: NJ, US
Posts: 1,979
OK, finally got the names to display correctly.

I added the <meta charset="UTF-8" /> line to the header_bit.tpl and regenerated/uploaded reports but this did not correct the issue and the new UTF line was not showing in the HTML that was generated.

After trying some other things it was suggested that I restart OOTP and when I did this and no other changes (above UTF-8 line in the header_bits.tpl file) and regenerated reports again it worked!

My guess is that OOTP cached the header_bits.tpl file so when I added it in the file without restarted OOTP the update didn't get used.

But all is good now.
__________________
Quote:
"Sometimes knowing too much about what goes on under the hood takes away from the experience of playing the game" - CBeisbol 11/25/2020
Commissioner(2013-) of the Moneyball Union(tMBU, online league) in our 78th season (est RL 2004)
byzeil is offline   Reply With Quote
Old 08-27-2021, 04:49 PM   #14
byzeil
All Star Starter
 
byzeil's Avatar
 
Join Date: Aug 2009
Location: NJ, US
Posts: 1,979
Andreas, could we get the <meta charset="UTF-8" /> line added in the source header_bits.tpl file so that online leagues don't need to go in an manually do it, especially if a patch updates the template files)?
__________________
Quote:
"Sometimes knowing too much about what goes on under the hood takes away from the experience of playing the game" - CBeisbol 11/25/2020
Commissioner(2013-) of the Moneyball Union(tMBU, online league) in our 78th season (est RL 2004)
byzeil is offline   Reply With Quote
Old 09-01-2021, 05:00 PM   #15
Recte44
Global Moderator
 
Recte44's Avatar
 
Join Date: Dec 2001
Location: Oconomowoc, WI
Posts: 2,750
Quote:
Originally Posted by silverwolf View Post
Try adding exactly the tag below to the HTML files (not the existing one with <meta name="content-type" content="text/html;charset=UTF-8">), and the accented characters should show up. It's worked for many leagues I've helped out.


Code:
<meta charset="utf-8">
This is HTML5 format for charset encoding, see https://www.thoughtco.com/meta-chars...-html5-3469066

This isn't a fix for older leagues or ones with custom templates, it's needed in OOTP22 reports unless you have a web server that's adding additional information.
Where specifically should that be added?
__________________
Matt Rectenwald
Commissioner, GM: Las Vegas Hustlers, The Brewster Baseball Association- fictional league (JOIN NOW)
Recte44 is offline   Reply With Quote
Old 01-11-2024, 04:44 PM   #16
andjbock
Hall Of Famer
 
andjbock's Avatar
 
Join Date: Jul 2003
Location: Somerville, MA, USA Bats: Right Throws: Left
Posts: 3,621
Thanks. This came in handy today.

[I take it back. It didn't work]

Last edited by andjbock; 01-11-2024 at 10:03 PM.
andjbock is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:07 PM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright © 2020 Out of the Park Developments