Apache::ACEProxy::SJIS_RACE - IDN compatible RACE proxy server


Apache-ACEProxy documentation Contained in the Apache-ACEProxy distribution.

Index


Code Index:

NAME

Top

Apache::ACEProxy::SJIS_RACE - IDN compatible RACE proxy server

SYNOPSIS

Top

  # in httpd.conf
  PerlTransHandler Apache::ACEProxy::SJIS_RACE

DESCRIPTION

Top

Apache::ACEProxy::SJIS_RACE is one of the implementations of Apache::ACEProxy. This module encodes Shift_JIS encoded domain names into RACE encoding.

CAVEATS

Top

Works well only for browsers which sends URL as Shift_JIS. Candidates are: Windows Netscape 4.x, Windows Internet Explorer with "Always send URL as UTF8" setting OFF. See "CAVEATS" in Apache::ACEProxy for details.

You need Jcode module to get this work.

AUTHOR

Top

Tastuhiko Miyagawa <miyagawa@bulknews.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

This module comes with NO WARANTY.

SEE ALSO

Top

Jcode, Convert::RACE, Apache::ACEProxy


Apache-ACEProxy documentation Contained in the Apache-ACEProxy distribution.

package Apache::ACEProxy::SJIS_RACE;

use strict;
use vars qw($VERSION);
$VERSION = '0.01';

use base qw(Apache::ACEProxy);

use Convert::RACE qw(to_race);
use Jcode ();

sub encode {
    my($class, $domain) = @_;
    return to_race(Jcode->new($domain, 'sjis')->ucs2);
}

1;
__END__