Home Menu

Menu


Reply
Thread Tools Display Modes
  #1  
Old Jan 23, 2002, 06:05 AM
Gringo Gringo is offline
New Member
 
Member Since: Sep 2001
Posts: 3
POD does not show the DMOZ World categories correctly - even the demo on grohol.com doesn't work. Pick any category in Spanish for example and you'll get an error like this ..
POD encountered the following error while trying to run:
404 Not Found
Attempted retrieval URL: http://dmoz.org/World/Español/Pa*s...nomas/Madrid/

Any solutions anybody?

Thanks, Gringo.


advertisement
  #2  
Old Feb 02, 2002, 07:36 AM
BeRKA's Avatar
BeRKA BeRKA is offline
Member
 
Member Since: Aug 2001
Location: Sweden, Stockholm
Posts: 40
It works with netscape.
With explorer, replace the n-tilde with
a "%" an "f" and a "1".

A bugfix would be to rewrite all links with international characters so it works for explorer.

  #3  
Old Feb 04, 2002, 06:50 AM
Gringo Gringo is offline
New Member
 
Member Since: Sep 2001
Posts: 3
Thanks -. yes, you're right. It does work with Netscape. However, IE is used by the majority of surfers. Surely this would be an easy change to make in POD?

Gringo.

  #4  
Old Apr 02, 2002, 03:09 AM
scriptnews scriptnews is offline
New Member
 
Member Since: Apr 2002
Posts: 2
Sorry I have the same problem, and I would like to apply the proposed fix - unfortunately I am not fit with perl programming.

Could someone please post a more detailled info ...

Many thanks for kind support and this fine tool.

ScriptNews

  #5  
Old Apr 02, 2002, 01:28 PM
BeRKA's Avatar
BeRKA BeRKA is offline
Member
 
Member Since: Aug 2001
Location: Sweden, Stockholm
Posts: 40
For some reason (Have dmoz changed the coding?) it seems to work with IE now.

If You still want a bugfix,
a quick and dirty one would look something like this:

# n-tilde
@tags = split(/\"/, $pod_line); # assign podline to test
@orglink = @tags;
$countntilde = 0;
$startlink = 0;
foreach $ntilde (@tags)
{
if ($startlink)
{
$ntilde =~ s/ñ/\%f1/g; # change link
$pod_line =~ s/$orglink[$countntilde]/$ntilde/; # replace original with changed
}
if ($ntilde =~ m/a href/i)
{
$startlink = 1;
}
else
{
$startlink = 0;
}
$countntilde++;
}

Place it in the part of the script where $pod_line is modified.
It should be simple to modify the above for any international characters

  #6  
Old Apr 03, 2002, 06:20 AM
scriptnews scriptnews is offline
New Member
 
Member Since: Apr 2002
Posts: 2
Hi and thanks a lot for the code.

Well, I just found another "bug" which shows even on the demo set up e.g. in the spanish language part:

--- snip ---

"Top: World:">
"Top: World:"> Top: World: Espaol: Artes (7.870)

--- snip end ---

The same weard behaviour shows up on my test install.

What could be the reason, and what could be done about it... ?

Again, many thanks in advance.

ScriptNews

  #7  
Old Apr 04, 2002, 11:36 PM
BeRKA's Avatar
BeRKA BeRKA is offline
Member
 
Member Since: Aug 2001
Location: Sweden, Stockholm
Posts: 40
Try turning off the internationalization.
(Set a # in front of $pod_international=1; in the podvars file.)
It isn't working the way it should.

  #8  
Old Jul 31, 2003, 04:39 AM
john_campbell john_campbell is offline
New Member
 
Member Since: Jul 2003
Posts: 4
This didn't work for me. My MSIE now seems to be using double byte code for international characters. My workaround for World categories is:

Find:
# $pod_url=&pod_escape($pod_url);

After that line, add (but see note below):
# uppercase
$pod_url =~ s/À/\% c0/g;
$pod_url =~ s/Á/\% c1/g;
$pod_url =~ s/Â/\% c2/g;
$pod_url =~ s/Ã/\% c3/g;
$pod_url =~ s/Ä/\% c4/g;
$pod_url =~ s/Å/\% c5/g;
$pod_url =~ s/Æ/\% c6/g;
$pod_url =~ s/Ç/\% c7/g;
$pod_url =~ s/È/\% c8/g;
$pod_url =~ s/É/\% c9/g;
$pod_url =~ s/Ê/\% ca/g;
$pod_url =~ s/Ë/\% cb/g;
$pod_url =~ s/Ì/\% cc/g;
$pod_url =~ s/Í/\% cd/g;
$pod_url =~ s/Î/\% ce/g;
$pod_url =~ s/Ï/\% cf/g;
$pod_url =~ s/Ð/\% d0/g;
$pod_url =~ s/Ñ/\% d1/g;
$pod_url =~ s/Ò/\% d2/g;
$pod_url =~ s/Ó/\% d3/g;
$pod_url =~ s/Ô/\% d4/g;
$pod_url =~ s/Õ/\% d5/g;
$pod_url =~ s/Ö/\% d6/g;
$pod_url =~ s/×/\% d7/g;
$pod_url =~ s/Ø/\% d8/g;
$pod_url =~ s/Ù/\% d9/g;
$pod_url =~ s/Ú/\% da/g;
$pod_url =~ s/Û/\% db/g;
$pod_url =~ s/Ü/\% dc/g;
$pod_url =~ s/Ý/\% dd/g;
$pod_url =~ s/Þ/\% de/g;
$pod_url =~ s/ß/\% df/g;

# lowercase
$pod_url =~ s/ /\% e0/g; # that's not a space but character 160
$pod_url =~ s/á/\% e1/g;
$pod_url =~ s/â/\% e2/g;
$pod_url =~ s/ã/\% e3/g;
$pod_url =~ s/ä/\% e4/g;
$pod_url =~ s/å/\% e5/g;
$pod_url =~ s/æ/\% e6/g;
$pod_url =~ s/ç/\% e7/g;
$pod_url =~ s/è/\% e8/g;
$pod_url =~ s/é/\% e9/g;
$pod_url =~ s/ê/\% ea/g;
$pod_url =~ s/ë/\% eb/g;
$pod_url =~ s/ì/\% ec/g;
$pod_url =~ s/*/\% ed/g; # hidden character 173 in this line
$pod_url =~ s/î/\% ee/g;
$pod_url =~ s/ï/\% ef/g;
$pod_url =~ s/ð/\% f0/g;
$pod_url =~ s/ñ/\% f1/g;
$pod_url =~ s/ò/\% f2/g;
$pod_url =~ s/ó/\% f3/g;
$pod_url =~ s/ô/\% f4/g;
$pod_url =~ s/õ/\% f5/g;
$pod_url =~ s/ö/\% f6/g;
$pod_url =~ s/÷/\% f7/g;
$pod_url =~ s/ø/\% f8/g;
$pod_url =~ s/ù/\% f9/g;
$pod_url =~ s/ú/\% fa/g;
$pod_url =~ s/û/\% fb/g;
$pod_url =~ s/ü/\% fc/g;
$pod_url =~ s/ý/\% fd/g;
$pod_url =~ s/þ/\% fe/g;
$pod_url =~ s/ÿ/\% ff/g;

# some oddities:
$pod_url =~ s/ /\% 8a/g; #
$pod_url =~ s/Œ/\% 8c/g; #
$pod_url =~ s/š/\% 9a/g; #
$pod_url =~ s/œ/\% 9c/g; #
$pod_url =~ s/Ÿ/\% 9f/g; #

Note that I couldn't get this to appear correctly in this forum. % c0 should have no space between the % and the c0, and similarly for all the character entities.

All the foreign characters in directory categories work now, but not searches with international characters.

The code is not very economical, I know!

  #9  
Old Aug 01, 2003, 09:46 AM
john_campbell john_campbell is offline
New Member
 
Member Since: Jul 2003
Posts: 4
And to get international characters working in searches AND to get searches within directories working, I did in addition:

1. Find:
$pod_dir =~ s/%([\dA-Fa-f]{2})/pack("C", hex($pod_1))/eisg;
Comment it out, and add
$pod_dir = pod_unescape($pod_dir);
(Was stripping out high order characters rather than replacing them. Also doing the same with forward slashes, needed for searches within directories)

2.
Find:
$pod_line = &pod_unescape($pod_line);

After it, add:
### might be double byte

# uppercase
$pod_line =~ s/À//g;
$pod_line =~ s/Á//g;
$pod_line =~ s/Â//g;
$pod_line =~ s/Ã//g;
$pod_line =~ s/Ä//g;
$pod_line =~ s/Å//g;
$pod_line =~ s/Æ//g;
$pod_line =~ s/Ç//g;
$pod_line =~ s/È//g;
$pod_line =~ s/É//g;
$pod_line =~ s/Ê//g;
$pod_line =~ s/Ë//g;
$pod_line =~ s/Ì//g;
$pod_line =~ s/Í//g;
$pod_line =~ s/Î//g;
$pod_line =~ s/Ï//g;
$pod_line =~ s/Ð//g;
$pod_line =~ s/'//g;
$pod_line =~ s/'//g;
$pod_line =~ s/"//g;
$pod_line =~ s/"//g;
$pod_line =~ s/Õ//g;
$pod_line =~ s/-//g;
$pod_line =~ s/-//g;
$pod_line =~ s/Ø//g;
$pod_line =~ s/Ù//g;
$pod_line =~ s/Ú//g;
$pod_line =~ s/Û//g;
$pod_line =~ s/Ü//g;
$pod_line =~ s/Ý//g;
$pod_line =~ s/Þ//g;
$pod_line =~ s/ß//g;

# lowercase
$pod_line =~ s/ //g;
$pod_line =~ s/á//g;
$pod_line =~ s/â//g;
$pod_line =~ s/ã//g;
$pod_line =~ s/ä//g;
$pod_line =~ s/å//g;
$pod_line =~ s/æ//g;
$pod_line =~ s/ç//g;
$pod_line =~ s/è//g;
$pod_line =~ s/é//g;
$pod_line =~ s/ê//g;
$pod_line =~ s/ë//g;
$pod_line =~ s/ì//g;
$pod_line =~ s/*//g; # hidden character in this line
$pod_line =~ s/î//g;
$pod_line =~ s/ï//g;
$pod_line =~ s/ð//g;
$pod_line =~ s/ñ//g;
$pod_line =~ s/ò//g;
$pod_line =~ s/ó//g;
$pod_line =~ s/ô//g;
$pod_line =~ s/õ//g;
$pod_line =~ s/ö//g;
$pod_line =~ s/÷//g;
$pod_line =~ s/ø//g;
$pod_line =~ s/ù//g;
$pod_line =~ s/ú//g;
$pod_line =~ s/û//g;
$pod_line =~ s/ü//g;
$pod_line =~ s/ý//g;
$pod_line =~ s/þ//g;
$pod_line =~ s/ÿ//g;

# some oddities:
$pod_line =~ s/ //g;
$pod_line =~ s/'//g;
$pod_line =~ s/š//g;
$pod_line =~ s/"//g;
$pod_line =~ s/Ÿ//g;
###

This works on both MSIE, NS4 and NS6 on my PC, running Windows 98 (English)

The alterations in my previous post are also required.

I'm well aware it could be improved, but that is beyond my skills!


  #10  
Old Aug 05, 2003, 03:08 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794

Hi John,

Thanks for these! If you email them to me I can put them into a new point release version of POD, along with some other minor updates I've made. (Email will preserve formatting unlike this forum! Sorry about that......)

Best,
John

__________________
Don't throw away your shot.
  #11  
Old Mar 25, 2004, 11:50 AM
john_campbell john_campbell is offline
New Member
 
Member Since: Jul 2003
Posts: 4
Actually it is incredibly simple. Ignore my previous post.

1. Find:
$pod_dir =~ s/%([\dA-Fa-f]{2})/pack("C", hex($pod_1))/eisg;
Comment it out, and add
$pod_dir = pod_unescape($pod_dir);

2. Find:
print $pod_q->header(-type=>'text/html',

After it add:
-charset=>'UTF-8',

See attached file for more details

  #12  
Old Mar 25, 2004, 03:43 PM
DocJohn's Avatar
DocJohn DocJohn is offline
Founder & Your Host
Community Support Team
Chat Leader
 
Member Since: May 2001
Location: Greater Boston, MA
Posts: 13,794
I've made the updates and released the current version as 1.95 that fixes the international issues, thank you!!


__________________
Don't throw away your shot.
  #13  
Old Mar 26, 2004, 01:00 AM
(JD)'s Avatar
(JD) (JD) is offline
Legendary Wise Elder
 
Member Since: Dec 2003
Location: Coram Deo
Posts: 35,474
I read these posts and I'm not sure if I'm more in awe of your knowledge , or frustrated that I can no longer learn!

<font color=blue> meditation is a true way to connect to the Source </font color=blue>
__________________
POD error in DMOZ World categories
Believe in Him or not --- GOD LOVES YOU!

Want to share your Christian faith? Click HERE
Reply
Views: 1176

attentionThis is an old thread. You probably should not post your reply to it, as the original poster is unlikely to see it.



Similar Threads
Thread Thread Starter Forum Replies Last Post
not sure that I fit into any of the categories lacrymosa New Member Introductions 12 Jul 20, 2007 06:49 PM
new member & seeing JVM error, IE error? Rose3 Community Feedback & Technical Support 1 Feb 16, 2007 10:11 PM
"Listing Categories" pebblypoo Community Feedback & Technical Support 9 Dec 06, 2005 01:35 PM
POD: How to use different header.html for different categories! BeRKA Community Feedback & Technical Support 1 Aug 29, 2001 07:04 PM
Can't connect to dmoz.org error daveg Community Feedback & Technical Support 11 Aug 07, 2001 05:16 PM


All times are GMT -5. The time now is 11:44 AM.
Powered by vBulletin® — Copyright © 2000 - 2025, Jelsoft Enterprises Ltd.




 

My Support Forums

My Support Forums is the online community that was originally begun as the Psych Central Forums in 2001. It now runs as an independent self-help support group community for mental health, personality, and psychological issues and is overseen by a group of dedicated, caring volunteers from around the world.

 

Helplines and Lifelines

The material on this site is for informational purposes only, and is not a substitute for medical advice, diagnosis or treatment provided by a qualified health care provider.

Always consult your doctor or mental health professional before trying anything you read here.