Go Back   Peoples Republic Of Cork Discussion Forums > Tech Forum
User Name
Password
Reply
 
Thread Tools Display Modes
  #1  
Old 22-02-2006, 12:32 PM
Bould Tady Quill Bould Tady Quill is offline
Senior Member
 
Join Date: Jul 2002
Location: Snogging Cork Wan down the back of the Halla..!!!!
Posts: 8,174
Default 




Showing up in Firefox browsers............ .something to do with my javascript im guessing.
Reply With Quote
  #2  
Old 22-02-2006, 01:40 PM
shamalive shamalive is offline
Senior Member
 
Join Date: Jun 2002
Posts: 14,228
Default

Quote:
Originally Posted by Bould Tady Quill



Showing up in Firefox browsers............ .something to do with my javascript im guessing.

eh?
__________________
I am, nothing, no one, nobody, no more.
Reply With Quote
  #3  
Old 22-02-2006, 03:18 PM
Bould Tady Quill Bould Tady Quill is offline
Senior Member
 
Join Date: Jul 2002
Location: Snogging Cork Wan down the back of the Halla..!!!!
Posts: 8,174
Default

Quote:
Originally Posted by shamalive
eh?
Eh is right!!!!

Found out its not a javascript issue..........Its a Tomcat issue............... Boy is my face red.....


Strange Characters at the beginning of every JSP page
Author: webmaster2004-06-29 06:15:22 Several people have reported that the get some strange characters like "" at the begining of every JSP page when using Tomcat 5.0.


These strange characters are the Unicode header for UTF-8 encoded files.


For an unknown reason, some (not all) Tomcat versions do not recognize properly UTF-8 files and send the strange characters to the client browser.


We have been unable to fix this problem, being the only solution changing all the JSP to ISO-8859-1 encoding.


This problem only affects 2.0.x versions since 1.x pages are already encoded as ISO-8859-1.



One solution is replacing UTF-8 included files from /methods directory by ASCII versions. The ASCII files are available at Patch 2.0.13



There is also another ISO-8859-1 full JSP replacement patch for v2.0.12 that can be downloaded from http://www.hipergate.org/dist/hipergate/patches/ just unzip the patch and overwrite the original 2.0.12 files with the ones from the patch.



For converting another JSP pages from UTF-8 to ISO-8859-1 you must:



1st) Replace contentType="text/html;charset=UTF-8" with contentType="text/html;charset=ISO-8859-1" at the beginning of each page.



2nd) Run this re-encoding routine:




String [] files = new String[] {"addrbook/adrbkhome.jsp", "addrbook/editfellowtitle.jsp" ,...};





com.knowgate.dfs.Fil eSystem oFS = new com.knowgate.dfs.Fil eSystem();





String sBase = "/opt/knowgate/web-iso/";


String sFile;





int iFiles = files.length;





for (int f=0; f<iFiles; f++) {


sFile = oFS.readfilestr(sBas e+files[f], "UTF-8");


oFS.writefilestr(sBa se+files[f], sFile, "ISO-8859-1");


}
Finally, you can also remove UTF-8 prolog characters from all JSP files with this script courtesy of Lorenzo López


#!/bin/bash

for i in `grep "" * -R | cut -f1 -d:` ; do

cat $i | tr "" ' ' > $i.new

mv $i.new $i

done
The script must be executed from the same directory where hipergate is installed (for example tomcat/webapps/hipergate).
Reply With Quote
  #4  
Old 22-02-2006, 03:21 PM
i_didnt_do_nawtin i_didnt_do_nawtin is offline
Senior Member
 
Join Date: Dec 2003
Location: the INTERNET-y
Posts: 25,775
Default

Shoddy workmanship, Ted
Reply With Quote
  #5  
Old 22-02-2006, 03:23 PM
Bould Tady Quill Bould Tady Quill is offline
Senior Member
 
Join Date: Jul 2002
Location: Snogging Cork Wan down the back of the Halla..!!!!
Posts: 8,174
Default

Quote:
Originally Posted by i_didnt_do_nawtin
Shoddy workmanship, Ted
One word................ .................... ....................




.................... ................PLOP S................... ..................!
Reply With Quote
  #6  
Old 22-02-2006, 03:39 PM
Bould Tady Quill Bould Tady Quill is offline
Senior Member
 
Join Date: Jul 2002
Location: Snogging Cork Wan down the back of the Halla..!!!!
Posts: 8,174
Default

Quote:
Originally Posted by i_didnt_do_nawtin
Shoddy workmanship, Ted
And how is it shoddy?

Is it my fault my Tomcat version is shoddy?
Reply With Quote
  #7  
Old 22-02-2006, 04:30 PM
i_didnt_do_nawtin i_didnt_do_nawtin is offline
Senior Member
 
Join Date: Dec 2003
Location: the INTERNET-y
Posts: 25,775
Default

Quote:
Originally Posted by Bould Tady Quill
One word................ .................... ....................




.................... ................PLOP S................... ..................!
scandalous
Reply With Quote
  #8  
Old 22-02-2006, 10:53 PM
freeohfree freeohfree is offline
Member
 
Join Date: May 2004
Posts: 326
Default

Quote:
Originally Posted by Bould Tady Quill
Is it my fault my Tomcat version is shoddy?
yes...

http://tomcat.apache.org/getinvolved.html
Reply With Quote
  #9  
Old 23-02-2006, 11:59 AM
Bould Tady Quill Bould Tady Quill is offline
Senior Member
 
Join Date: Jul 2002
Location: Snogging Cork Wan down the back of the Halla..!!!!
Posts: 8,174
Default

Quote:
Originally Posted by freeohfree
Your point?
Reply With Quote
Reply

Thread Tools
Display Modes

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







PROC Gig Guide
Grease Is The Word!
Cork Opera House, Emmet Place

Friday 2nd August @ 2:30 pm


PROC Gig Guide
The Lucid Dream with Cove & Guests
The Pavilion, Carey's Lane, 9pm

The Butterfly Collector's Burlesque Revue
Crane Lane Theatre, Phoenix St., 8:30 pm

Route 66
Clancy's, Marlborough St., 9pm

The Lee Sessions
The Oliver Plunkett, 5pm

The Calvinists
The Oliver Plunkett, Oliver Plunkett St., 10:30 pm

Draw Me A Butt, Nothing For Free & Audible Joes
Fred Zeppelins, Parliament St., 9pm

Cork City Music College's 25th Anniversary Gala Celebration
Triskel Arts Centre, Tobin St., 8pm

The G-man Presents This Is The Kit & Biggles Flys Again
Triskel Arts Centre, Tobin St., 9:30 pm

The Lee Sessions
An Spailpín Fánach, South Main St., 10pm

Rory Neville
The Gables, Douglas St., 10pm

Chicken Skin
Charlie's, Union Quay, 10:30 pm

Stanza Traffic
De Barras, Clonakilty, 10:30 pm

The Mashed Potatoes
Coughlan's, Douglas St., 9pm

Hot Blooded Animals
Coughlan's, Douglas St., 10pm

The Crucial Party
The Pavilion, Carey's Lane, 11:30 pm

Munster Soul Night
The Roundy, Castle St., 9pm

Munster Soul Night
The Roundy, Castle St., 9pm

DJ Fadd Jnr
Crane Lane Theatre, Phoenix St., 11:30 pm

Revolution
The Savoy Theatre, Patrick St., 10:30 pm

DJ Mills Till Late
The Woodford, Paul St., 8pm

Culture Sound Infection
City Limits, Coburg St., 10:30 pm

Danny Dowling ( New Zealand Winner Of Come Dine with Me ) Ro
City Limits, Coburg St., 9pm

Death Of A Salesman
The Everyman, MacCurtain St., 8pm

Dradin, In Love
Granary Theatre, 8pm

The Dance Of Making
Firkin Crane, 10am

New Beginnings- Caring For Our Well Being
We Made This- South Pres, Evergreen St., 2pm

Kids Arts and Crafts Workshops
Blackrock Community Centre, 2pm

Flea Market
Mother Jones Flea Market, 11am


All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
All forum comments are the sole responsibility and property of forum users. PeoplesRepublicOfCork.com and its sponsors disclaim all liability for content posted by users of the forum. PeoplesRepublicOfCork.com and its sponsors do not necessarily share the views expressed in this forum. Use the report post system to have comments considered for edit or deletion. All users are IP logged. Website hosted by Hostrocket USA.