火曜日, 11月 07, 2006

IEのhrefの文字化けによるリンク不具合の実験

部分更新スクリプトでラベルのリンクがうまく取得できなかったのでちょっと調べてみた

ラベルを日本語にするとURLに日本語が含まれることになるけど
ソースを見ると既に日本語の所はURLエンコードされてる
Firefoxだと問題はないけどIEだと問題が出るようだ
最初スクリプトが間違ってたのかと思ったけど
IE系ブラウザでスクリプトでリンクのhrefを取得するとこの時点で既に文字化けしてた
いろいろ検索してみたところこんなサイトを発見
alert window への日本語表示
具体的な対処方法が載ってなかったけど
なんとなくエンコード、デコードの順番の問題かなと思った
UTF-8の日本語をURLエンコードしてるとIEではそれを変な風にデコードしてしまうって事なのかな?
今IE系のブラウザのMaxthonを使ってるけど
Bloggerの日本語ラベルリンクを真ん中クリックで他のタブで開くと
URLの最後の方が文字化けしてうまくリンクを開けない
その辺と関係がありそうだ
そういえばwikipediaとかはてなダイアリーキーワードとかも中クリックの時はうまく開けなかった気がする
次に文字化けしたURLを
[ サンプル ] _ encoder / decorder(文字列の符号化・復号化)
でエンコードしてみた
そしたらソースにあったURLと同じになった
つまり
UTF-8→URLエスケープ(元のURL)→unescape(hrefで取得したURL?)→escape=元のURL
と戻すことができたのかな
escapeするだけだと今度はFirefoxで表示した時おかしくなるのでその辺はブラウザによって処理分けする必要があるかな
OperaとかSafariとかIE7じゃどうなるかわかんないけどね
とりあえずIE6とFirefoxだけみれればいいかな

IEの時だけescapeするようにしてみたら部分更新スクリプトがうまく動くようになった!

28 件のコメント:

匿名 さんのコメント...

dating service south west [url=http://loveepicentre.com/]iranian singles[/url] irish singles http://loveepicentre.com/ whoisjohngalt female dating

匿名 さんのコメント...

dog health licking chops [url=http://usadrugstoretoday.com/products/purim.htm]purim[/url] stretching your penis http://usadrugstoretoday.com/products/biaxin.htm how to implement in house drug testing http://usadrugstoretoday.com/catalogue/k.htm
discovery health sex change [url=http://usadrugstoretoday.com/products/bactrim.htm]bactrim[/url] green tea cup with lemon and tea bag [url=http://usadrugstoretoday.com/categories/antibioticos.htm]breast cancer final pathology[/url]

匿名 さんのコメント...

the beehive tea room [url=http://usadrugstoretoday.com/products/accupril.htm]accupril[/url] deluxe fur penis muffler http://usadrugstoretoday.com/products/compazine.htm health problems for bengal tiger http://usadrugstoretoday.com/products/prinivil.htm
penis website [url=http://usadrugstoretoday.com/categories/schlafen-hilfe.htm]schlafen hilfe[/url] vaginal irritatation girls [url=http://usadrugstoretoday.com/products/remeron.htm]online pharmacy zantac[/url]

匿名 さんのコメント...

what is a low caliclum diet [url=http://usadrugstoretoday.com/categories/antibioticos.htm]antibioticos[/url] cause drug loss that weight http://usadrugstoretoday.com/products/hydrochlorothiazide.htm medical doctor descriptions http://usadrugstoretoday.com/catalogue/t.htm
hiv blood test animal research [url=http://usadrugstoretoday.com/products/herbolax.htm]herbolax[/url] fun dental facts [url=http://usadrugstoretoday.com/products/indocin.htm]health potassium foods[/url]

匿名 さんのコメント...

http://online-health.in/angina/angina-signs-and-symptoms
[url=http://online-health.in/atacand/atacand-16-mg]asean scholarships singapore pharmacy[/url] symptoms of ecstasy drug abuse [url=http://online-health.in/bentyl/bentyl-side-effects]bentyl side effects[/url]
westchase compounding pharmacy http://online-health.in/bisacodyl/bisacodyl-narcotics
[url=http://online-health.in/aricept/generic-for-aricept]pharmacy forcasts[/url] petraneks pharmacy [url=http://online-health.in/benicar/altace-better-than-benicar]altace better than benicar[/url]
drug identifacation information http://online-health.in/astelin/astelin-side-effects
[url=http://online-health.in/ashwagandha]all the facts on club drugs[/url] maryland compounding pharmacy [url=http://online-health.in/azithromycin/azithromycin-and-smoking]azithromycin and smoking[/url] lonely once the drug are gone [url=http://online-health.in/anastrozole/anastrozole]anastrozole[/url]

匿名 さんのコメント...

mercedes adult http://eautoportal.in/bmw e320 station wagon 4 matic mercedes benz drive shafts
[url=http://eautoportal.in/ford-com/kenneth-wessner-ford-winchester-tn]kit for 1998 volkswagen bug[/url] mercedes benz clubs [url=http://eautoportal.in/buell/buell-s3-isolator-bushings]buell s3 isolator bushings[/url]
future of the automobile industry and price elasticity http://eautoportal.in/gmc/gmc-topkick-schematic
[url=http://eautoportal.in/geo/used-brother-geo]zil auto[/url] mercedes benz c class 64 [url=http://eautoportal.in/ferrari/ferrari-430-scudaria-options-list]ferrari 430 scudaria options list[/url]
mercedes benz z4 http://eautoportal.in/buell/how-much-oil-does-a-1999-buell-x1-lighting-take
[url=http://eautoportal.in/car-racing/bell-racing-133]volkswagen chassis[/url] used mercedes parts st augustine fl [url=http://eautoportal.in/daihatsu]daihatsu[/url]

匿名 さんのコメント...

dodge caravan mark111 conversions http://autoexpress.in/plymouth/fittness/together/plymouth/mi auto rotisserie colorado
[url=http://autoexpress.in/motors/satellite/dish/motors/belfast/northern/ireland/htm]auto burglar gun nfa[/url] greyhound kansas racing [url=http://autoexpress.in/mercedes/mercedes/dealer/sign/history]mercedes dealer sign history[/url]
auto electroic window signs http://autoexpress.in/mercedes/mercedes/dealer/sign/history
[url=http://autoexpress.in/pontiac]automobile valve seat[/url] automobile leaf springs [url=http://autoexpress.in/cadillac/cadillac/wheel/cover/emblem]cadillac wheel cover emblem[/url]
sunbelt crystler live oak fl dodge http://autoexpress.in/porsche/ae/porsche/intercooler
[url=http://autoexpress.in/rally]mercedes benz used vans[/url] large screen automobile gps unite [url=http://autoexpress.in/scooter/scooter/store/experiences]scooter store experiences[/url]

匿名 さんのコメント...

busty lesbian dildo http://planetofporn.in/archive-adult/vip-adult-store
[url=http://planetofporn.in/adult-pic/adult-letters-for-reading]steak n cheese adult[/url] mario hentai free porn galries [url=http://planetofporn.in/erotic-gay/my-tube-erotic]my tube erotic[/url]
adult goldendoodle for adoption http://planetofporn.in/adult-porn/adult-learning-in-the-social-context-jarvis
[url=http://planetofporn.in/anal-life/how-do-i-make-anal-sex-easier]anal sex gifs[/url] english hentai game pack torrent [url=http://planetofporn.in/amateur-porn/programz-amateur-home-porn]programz amateur home porn[/url]
men enoy anal sex http://planetofporn.in/teen-ass/black-titties-and-ass
[url=http://planetofporn.in/free-amateur/shannan-chicago-amateur-porn]hardcore ebony anal sex[/url] highlander hentai [url=http://planetofporn.in/adult-pic/escort-adult-review-as]escort adult review as[/url]
asain gay porn http://planetofporn.in/erotic-gay/erotic-jennifer-rare-escort
[url=http://planetofporn.in/bdsm/bdsm-tourguide]free sexy shemale thumbnails[/url] tire mounting lubricant [url=http://planetofporn.in/free-adult/click-adult-com]click adult com[/url]

匿名 さんのコメント...

free anal sex porno http://theporncollection.in/gay-xxx/x-demon-gay-cigarette-smoking-fetish
[url=http://theporncollection.in/gay-xxx/gay-male-phone-sex]amateur gallery pussy[/url] kenshin hentai videos [url=http://theporncollection.in/lubricant/resorts-couples-incision-leave-lubricant-recommend-single]resorts couples incision leave lubricant recommend single[/url]
amateur bounce http://theporncollection.in/lesbian-porn/lesbian-wedding-planner
[url=http://theporncollection.in/gay-male/gay-shawano]hentai little girl rape[/url] men watching lesbians porn [url=http://theporncollection.in/free-hentai/cute-hentai-babes]cute hentai babes[/url]
free hentai porn for ipod http://theporncollection.in/gay-man/free-gay-mature-truckers
[url=http://theporncollection.in/gay-boy/free-gay-beastiality-stories]rotating dildo[/url] animia sexy pic [url=http://theporncollection.in/gay-porn/gay-escorts-europe]gay escorts europe[/url]
thumbs sex porn virgin http://theporncollection.in/mature-woman/mature-bukake
[url=http://theporncollection.in/gay-male/pink-gay-travel-guide]adult bouncer passes[/url] adult themed hotels [url=http://theporncollection.in/gay-xxx/gay-xxx-bestiality-porn]gay xxx bestiality porn[/url]

匿名 さんのコメント...

best medocone to take for muscle soreness [url=http://usadrugstoretoday.com/products/tretinoin-cream-0-025-.htm]Buy Tretinoin Cream 0.025% Online[/url] pedialoss dynamic health http://usadrugstoretoday.com/products/cefadroxil.htm
antibiotic for furuncules [url=http://usadrugstoretoday.com/categories/perdita-di-peso.htm]perdita di peso[/url] weight loss clinic ca [url=http://usadrugstoretoday.com/products/generic-motrin.htm ]pain in muscle in inner thigh [/url] rising blood pressure in the evening
diabetes foot care http care diabetesjournals org cgi [url=http://usadrugstoretoday.com/products/starlix.htm]starlix[/url] most common genetic disorder symptom http://usadrugstoretoday.com/products/trental.htm
do breast exersicers work [url=http://usadrugstoretoday.com/products/minocycline.htm]minocycline[/url] amazon medical books [url=http://usadrugstoretoday.com/products/evecare.htm ]legacy of kain blood omen strategy guide [/url] drew preventive health bethesda

匿名 さんのコメント...

chanel chavez http://luxefashion.us/kenzo-dress-shirts-brand43.html shoeshine [url=http://luxefashion.us/?action=products&product_id=2521]decorator assistant designer tools[/url] sixties fashion
http://luxefashion.us/cesare-paciotti-men-brand35.html information on australia clothes [url=http://luxefashion.us/dark-brown-new-color29.html]online shirt designer[/url]

匿名 さんのコメント...

snug dance shoes http://www.thefashionhouse.us/women-v-neck-type3.html crepe soled shoes squeaking [url=http://www.thefashionhouse.us/d-amp-g-lambskin-leather-jacket-for-women-black-item2300.html]roman fashion[/url] cosmo shoes
http://www.thefashionhouse.us/yellow-dressy-tops-color44.html clothes donation and pick up [url=http://www.thefashionhouse.us/shirts-page15.html]nike air max history of shoes converge triax[/url]

匿名 さんのコメント...

converse basketball shoes http://luxefashion.us/fendi-jeans-brand41.html bathing ape shoes [url=http://luxefashion.us/denim-blue-men-color7.html]simple shoes[/url] nike basketball shoes for woman
http://luxefashion.us/napapijri-polo-shirt-for-men-black-item2034.html kids clothes stockport [url=http://luxefashion.us/?action=products&product_id=1189]fashion seal healthcare[/url]

匿名 さんのコメント...

selitto women shoes glass heel with lights in them http://luxefashion.us/44-winter-jackets-size26.html tv chanel for videos [url=http://luxefashion.us/orange-white-color228.html]designer of waac uniforms[/url] quilted fashion photo handbag
http://luxefashion.us/xxl-club-wear-size8.html wallis fashion group online shop [url=http://luxefashion.us/pink-multicolored-men-color114.html]windsor smith shoes[/url]

匿名 さんのコメント...

http://xwv.in/naltrexone/naltrexone/source/of
[url=http://xwv.in/karela/kalliope/karela]osteoporosis drug abuse[/url] drug prices at heb pharmacy [url=http://xwv.in/lipitor/lipitor/related/hemorrhagic/stroke]lipitor related hemorrhagic stroke[/url]
pharmacy 3201 university drive east bryan texas http://xwv.in/ivermectin/ivermectin/dose
[url=http://xwv.in/nervousness/nervousness/in/pets]as seen on tv infomercial for book on drug testing[/url] dr john pet medicine [url=http://xwv.in/lisinopril/dog/lisinopril]dog lisinopril[/url]
statin drugs vs depression side effects of crestor http://xwv.in/ketoconazole/ketoconazole/pliva/100/tablets
[url=http://xwv.in/ketoconazole/use/of/ketoconazole/in/combination/with/atopica/in/dogs]drug choices in utis[/url] compazine phenergan drug interactions [url=http://xwv.in/loratadine/best/price/loratadine]best price loratadine[/url] visualization exercises for erectile dysfunction [url=http://xwv.in/naltrexone]naltrexone[/url]

匿名 さんのコメント...

horse race betting system http://wqm.in/jokers_gypsy-jokers-portland-or-offical-web-site casino olean ny
[url=http://wqm.in/joker_where-can-i-listen-to-songs-by-joker-the-bailbondsman-for-free]casino boats kentucky[/url] big casino jimmy eat world [url=http://wqm.in/lottery_florida-lottery-payment-field-office]florida lottery payment field office[/url]
poker odds casinos online http://wqm.in/joker_joker-motorcycle
[url=http://wqm.in/jokers_jokers-chat]lottery irs[/url] suncoast casino bingo [url=http://wqm.in/casino-online_cny-casino]cny casino[/url]
which gambling game makes alot of money http://wqm.in/lottery_african-american-online-lottery premiership betting comparison [url=http://wqm.in/blackjack_samsung-blackjack-help]samsung blackjack help[/url]

匿名 さんのコメント...

ffvotbl thf allhr pornstar anal

gptib!

pljme jkoubs hva hot skinny girls

匿名 さんのコメント...

I love jikkenshitsu.blogspot.com! Here I always find a lot of helpful information for myself. Thanks you for your work.
Webmaster of http://loveepicentre.com and http://movieszone.eu
Best regards

バイアグラジェネリック とは さんのコメント...

バイアグラジェネリックとは http://www.yorutomo-gaido.com/viagra_g.html

匿名 さんのコメント...

[url=http://buyxanax860.webs.com/]buy xanax xr no prescription[/url]
[url=http://buyxanax209.webs.com/]buy xanax online canada no prescription[/url]
[url=http://buyxanax975.webs.com/]how to purchase xanax online[/url]
[url=http://buyxanax859.webs.com/]buy xanax from mexico[/url]
[url=http://buyxanax872.webs.com/]buy xanax online with prescription[/url]
[url=http://buyxanax948.webs.com/]buy name brand xanax online[/url]
[url=http://buyxanax117.webs.com/]buy xanax online overnight[/url]
[url=http://buyxanax450.webs.com/]order xanax online[/url]
[url=http://buyxanax642.webs.com/]buy xanax usa[/url]
[url=http://buyxanax280.webs.com]order xanax online prescription[/url]
[url=http://buyxanax780.webs.com/]xanax order no prescription[/url]
[url=http://buyxanax216.webs.com/]buy xanax bars cheap[/url]
[url=http://buyxanax207.webs.com/]xanax no prescription paypal[/url]

匿名 さんのコメント...

nolvadex clomid pct dosage | http://buyclomidonline.jimdo.com/#16350 - clomid medicine, when to test for pregnancy on clomid

匿名 さんのコメント...

when is the best time of day to take clomid | clomid without prescriptions uk - purchase clomid without prescription, clomid experience

匿名 さんのコメント...

バイアグラ個人輸入やバイアグラ シアリス レビトラに関する最新情報が満載。
http://xn--cckd1b8h6e.cc/

匿名 さんのコメント...

[url=http://loans.legitpaydayloansonline1.com]Payday Loans Online[/url] Stype Online Payday Loan Flallododebag http://loans.legitpaydayloansonline1.com Fundpopog Look carefully at your budget the small irrespective omega approved to brorow, loan given your thought process.

匿名 さんのコメント...

what days to take clomid | 200 mg clomid - buy clomid cheap online, clomid blurred vision

匿名 さんのコメント...

clomid success 100mg | [url=http://ordergenericclomid.webs.com/#25421]purchase clomid without prescription[/url] - buy clomid canada, acpw clomid side effects on baby

匿名 さんのコメント...

http://www.cafb29b24.org/docs/buyativan/#medication cheap ativan - ativan 2 mg street value

匿名 さんのコメント...

Создание сайта будь то сайт – визитка, корпоративный сайт, [url=https://webprospekt24.ru/prodvizhenie-sajtov-pyatigorsk]раскрутка[/url], интернет магазин или мощный портал проходит в несколько этапов.
Продвижение сайтов, что такое ТОП 10 Яндекс и Google