mt5 タグクラウドの日本語url文字化け対処方
MT5 でタグクラウドを表示している場合に、タグが日本語表記だとurlが文字化けしてしまいタグ検索結果がちゃんと表示できないことがあった。
だいぶ調べてみても解決方法が見つからなかったけど、色々試した結果回避できたのでセルフメモメモ。
デフォルトだとこんなテンプレート
環境によってはこれだと日本語のタグ付けがされてるとクリックするとurlが文字化けしちゃいました。
こんな感じなのに、
クリックするとアドレス欄には
みたいなことに。。。
これだと検索結果が
てなことになってしまうのです・・・。
(今回はファーストサーバです。もしかしたらPearlのバージョンが5.8.0なのかもです。5.8.0は日本語の文字化けの問題があるらしいです)
参考:Movable Type 5 ドキュメント
で、だいぶ四苦八苦した結果
▼こんな感じでなんとか回避できました。
MTとかWordpressとか、トラブルが起きた時の解決方法を見つけるのがホント大変ですよね。。
だいぶ調べてみても解決方法が見つからなかったけど、色々試した結果回避できたのでセルフメモメモ。
デフォルトだとこんなテンプレート
<mt:Tags top="20">
<li class="rank-<$mt:TagRank max="10"$>"><a href="javascript:void(0)" onclick="location.href='<$mt:TagSearchLink encode_js="1"$>';return false;" rel="tag"><$mt:TagName$></a></li>
</mt:Tags>
環境によってはこれだと日本語のタグ付けがされてるとクリックするとurlが文字化けしちゃいました。
こんな感じなのに、
<a href="http://yourhost.com/mt/mt-search.cgi?tag=タグが日本語">
クリックするとアドレス欄には
http://yourhost.com/mt/mt-search.cgi?tag=%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88
みたいなことに。。。
これだと検索結果が
タグ:%E3%82%B3%E3%83%A1%E3%83%B3%E3%83%88は見つかりませんでした
てなことになってしまうのです・・・。
(今回はファーストサーバです。もしかしたらPearlのバージョンが5.8.0なのかもです。5.8.0は日本語の文字化けの問題があるらしいです)
参考:Movable Type 5 ドキュメント
で、だいぶ四苦八苦した結果
▼こんな感じでなんとか回避できました。
<mt:Tags top="20">
<li class="rank-<$mt:TagRank max="10"$>"><a href="http://yourhost.com/mt/mt-search.cgi?tag=<$mt:TagName encode_url="1"$>&limit=20" rel="tag"><$mt:TagName$></a></li>
</mt:Tags>
MTとかWordpressとか、トラブルが起きた時の解決方法を見つけるのがホント大変ですよね。。
この記事に対するコメント
Kraft Paper Factory https://www.supplycnc.com/kraft-paper-factory/
スーパーコピーブランド安心 https://kubanfss.ru/function/treatment
Sponsored Sponsored You’re seeing this ad based on the product’s relevance to your search query. Let us know adidas Nemeziz 19.1 Mens FG Football Boots http://www.shoesbright.com/sponsored-sponsored-you8217re-seeing-this-ad-based-on-the-product8217s-relevance-to-your-search--p-5345.html
18.5 Inch Home Automation https://www.coalicense.com/tag/18-5-inch-home-automation/
Endless Road - Scarpe da corsa da donna http://www.mdworldstore.it/endless-road-scarpe-da-corsa-da-donna-p-9010.html
TRDyj Damen Handtasche PU Leder Lady Fashion Messenger Bag Clutch Bag Brieftasche Schultertasche (Farbe : Pink) http://www.acatostore.de/trdyj-damen-handtasche-pu-leder-lady-fashion-messenger-bag-clutch-bag-brieftasche-schultertasche-farbe-pink-p-923.html
Chaussures lumineuses a LED pour enfants pour gar?ons et filles http://www.hitechstore.fr/chaussures-lumineuses-224-led-pour-enfants-pour-gar231ons-et-filles-p-1421.html
Joe Biden Bye Don Anti Trump Joe Biden 2020 Femmes telephone Portable Sac a Main en Cuir PU Sac a bandouliere avec Fermeture magnetique http://www.hitechstore.fr/joe-biden-bye-don-anti-trump-joe-biden-2020-femmes-t233l233phone-portable-sac-224-main-en-cuir-pu-sac-224-bandouli232re-avec-fermeture-magn233tique-p-21307.html
33kw Generator Engine https://www.ytopower.com/33kw-generator-engine/
adidas Zx Flux. Men’s Low-Top Sneakers http://www.shoesbright.com/adidas-zx-flux-men8217s-lowtop-sneakers-p-1574.html
Scarpe da ginnastica alte per uomo Paniting Forest Albero Stampa Moda Pizzo Scarpe di Tela Casual http://www.sonicstore.it/scarpe-da-ginnastica-alte-per-uomo-paniting-forest-albero-stampa-moda-pizzo-scarpe-di-tela-casual-p-17599.html
Damen Aztrek Double Mix Gymnastikschuhe http://www.yoostore.de/damen-aztrek-double-mix-gymnastikschuhe-p-13008.html
Zapatillas Casa Mujer Invierno Piel De Carnero Lana Pantuflas Casa Piel Genuina Charm http://www.uastore.es/zapatillas-casa-mujer-invierno-piel-de-carnero-lana-pantuflas-casa-piel-genuina-charm-p-1835.html
Damen 0348718 Stiefeletten http://www.acatostore.de/damen-0348718-stiefeletten-p-10457.html
300ml Pet Bottle https://www.plasticspray.com/300ml-pet-bottle/
Warmwin Dames Coton Pantoufles Printemps ete Automne Hiver menage Coton Pantoufles Dames Coton Chambre Chaussures Doux Plat Pantoufles Multi_5 http://www.deepstore.fr/warmwin-dames-coton-pantoufles-printemps-233t233-automne-hiver-m233nage-coton-pantoufles-dames-coton-chambre-chaussures-doux-plat-pantoufles-multi5-p-18435.html
Nike Unisex Adults’ Air Vapormax Plus Gymnastics Shoes http://www.shoesbright.com/nike-unisex-adults8217-air-vapormax-plus-gymnastics-shoes-p-5885.html
Alexa Darcy Donna Casuale Ala Punta Brogues http://www.mdworldstore.it/alexa-darcy-donna-casuale-ala-punta-brogues-p-17787.html
Nike Superfly 2020 Low - AA2547007 http://www.shoesbright.com/nike-superfly-2020-low-aa2547007-p-2287.html
316 Stainless Steel Wire https://www.sino-stainless-steel.com/316-stainless-steel-wire/
tote_bag GS Coton PAPA-JUSQU-AU-BOUT http://www.deepstore.fr/totebag-gs-coton-papajusquaubout-p-23677.html
Women Mini Purse Crossbody of Cell Phone,Cartoon Character On A Green Background Clipart Nursery Composition http://www.acatostore.de/women-mini-purse-crossbody-of-cell-phone65292cartoon-character-on-a-green-background-clipart-nursery-composition-p-14185.html
Airmesh. Sandales Bout Ouvert Femme http://www.deepstore.fr/airmesh-sandales-bout-ouvert-femme-p-23665.html
LANZHEN-RY Langlebig Crazy Horse Leder M?nner Taschen europ?ische und amerikanische Art und Weise Retro- Handtasche Beil?ufiges Gesch?fts-Schulter-Slant-Tasche Geldbeutel http://www.acatostore.de/lanzhenry-langlebig-crazy-horse-leder-m228nner-taschen-europ228ische-und-amerikanische-art-und-weise-retro-handtasche-beil228ufiges-gesch228ftsschulterslanttasche-geldbeutel-p-11525.html
Converse All Star Hi Top Pink http://www.shoesbright.com/converse-all-star-hi-top-pink-p-4715.html
6*6 inch Tiles https://www.yanjinchinaceramic.com/66inch-tiles/
Jump 500 S1P SRC. Scarpa Antinfortunistica Uomo http://www.sonicstore.it/jump-500-s1p-src-scarpa-antinfortunistica-uomo-p-4616.html
Scarpe antinfortunistiche Le dita dei piedi scarpe di sicurezza in acciaio cappuccio di protezione Estate volante di lavoro a maglia Scarpe casual lavoro puntura prova Sneakers leggero e traspirante f http://www.sonicstore.it/scarpe-antinfortunistiche-le-dita-dei-piedi-scarpe-di-sicurezza-in-acciaio-cappuccio-di-protezione-estate-volante-di-lavoro-a-maglia-scarpe-casual-lavoro-puntura-prova-sneakers-leggero-e-traspirante-f-p-14162.html
LKNJLL 1-Par de Calzado for Secadora electrica con Timer de Arranque secador de Zapatos Zapatos calido Secado Dispositivo de Calzado Calentador Deshumedecer desinfeccion del Desodorante http://www.uastore.es/lknjll-1par-de-calzado-for-secadora-el233ctrica-con-timer-de-arranque-secador-de-zapatos-zapatos-c225lido-secado-dispositivo-de-calzado-calentador-deshumedecer-desinfecci243n-del-desodorante-p-25587.html
Damen Tb-04 Umh?ngetasche Handtasche. Schulter-Umh?ngetasche http://www.acatostore.de/damen-tb04-umh228ngetasche-handtasche-schulterumh228ngetasche-p-19277.html
Fine Mist Spray https://www.plasticspray.com/fine-mist-spray/
Nike Air Max Lunar 90. Men’s Trainers http://www.shoesbright.com/nike-air-max-lunar-90-men8217s-trainers-p-623.html
Modesty-Portefeuille Homme en Cuir de Vachette Veritable Porte-Monnaie Vertical Vintage Porte-Carte Permis de Conduire Super Cadeau d’Anniversaire/ Valentin/ (Marron)-QB011-BR http://www.hitechstore.fr/modestyportefeuille-homme-en-cuir-de-vachette-v233ritable-portemonnaie-vertical-vintage-portecarte-permis-de-conduire-super-cadeau-d8217anniversaire-valentin-marronqb011br-p-4169.html
Mochila Camel http://www.uastore.es/mochila-camel-p-23049.html
Custom Bottle https://www.sgoodglass.com/custom-bottle/
PUMA Suede Classic Natural Calm Casual Sneaker http://www.shoesbright.com/puma-suede-classic-natural-calm-casual-sneaker-p-1054.html
Damen Stiefeletten 26443-23. Frauen Schnurstiefelette http://www.acatostore.de/damen-stiefeletten-2644323-frauen-schn252rstiefelette-p-15114.html
Women Mini Purse Crossbody of Cell Phone,Lower Manhattan Cityscape Famous Travel Destination NYC Avenue Historical http://www.yoostore.de/women-mini-purse-crossbody-of-cell-phone65292lower-manhattan-cityscape-famous-travel-destination-nyc-avenue-historical-p-9702.html
Borse a tracolla Bambino carino che gioca nella neve Borse per il corpo incrociate Borse alla moda in pelle leggera da 10 x 8 pollici per le donne con tracolla lunga per le donne http://www.mdworldstore.it/borse-a-tracolla-bambino-carino-che-gioca-nella-neve-borse-per-il-corpo-incrociate-borse-alla-moda-in-pelle-leggera-da-10-x-8-pollici-per-le-donne-con-tracolla-lunga-per-le-donne-p-1289.html
China Lady Shoes and Footwear factory https://www.byring-shoes.com/china-lady-shoes-and-footwear-factory/
Remaches de cuero de las mujeres de la parte superior de la manija de las bolsas cruzadas del cuerpo de la moda mochilas para las compras trabajo campus negro grandes cuernos http://www.uastore.es/remaches-de-cuero-de-las-mujeres-de-la-parte-superior-de-la-manija-de-las-bolsas-cruzadas-del-cuerpo-de-la-moda-mochilas-para-las-compras-trabajo-campus-negro-grandes-cuernos-p-2620.html
QFYD FDEYL Femme Bout Ouvert Soiree Parties Mariage.Chaussures a Talons Hauts et Boucle a Boucle. Sandales a Talon Aiguille Plus la Taille-Noir_41. Bout Ouvert Pompes Chaussures de Mariage http://www.hitechstore.fr/qfyd-fdeyl-femme-bout-ouvert-soir233e-parties-mariagechaussures-224-talons-hauts-et-boucle-224-boucle-sandales-224-talon-aiguille-plus-la-taillenoir41-bout-ouvert-pompes-chaussures-de-mariage-p-23129.html
Anime One Punch Man Shell Shape Borse portatili Pochette Pochette Portamonete Cosmetico Unisex Travel Storage Baging 2 Pz Cancelleria Matita http://www.mdworldstore.it/anime-one-punch-man-shell-shape-borse-portatili-pochette-pochette-portamonete-cosmetico-unisex-travel-storage-baging-2-pz-cancelleria-matita-p-6950.html
adidas Terrex Choleah High Cp. Women’s Fitness http://www.shoesbright.com/adidas-terrex-choleah-high-cp-women8217s-fitness-p-4828.html
Slyde Flip Flops http://www.yoostore.de/slyde-flip-flops-p-15828.html
pengweiPendiente y deslizadores frescos gruesos del tal¨?n de la parte inferior calzan los zapatos ocasionales de la playa del verano http://www.sarstore.es/pengweipendiente-y-deslizadores-frescos-gruesos-del-tal168174n-de-la-parte-inferior-calzan-los-zapatos-ocasionales-de-la-playa-del-verano-p-14038.html
Glass Tube https://www.comiaroma.com/glass-tube/
Scarpe per Salsa Scarpe da Ballo Latino per Adulti Cinturino con Fibbia Scarpe Latino Scarpe da Ballo da Ballo Quadrato da Donna-A_43 http://www.mdworldstore.it/scarpe-per-salsa-scarpe-da-ballo-latino-per-adulti-cinturino-con-fibbia-scarpe-latino-scarpe-da-ballo-da-ballo-quadrato-da-donnaa43-p-20109.html
Herren Mens Leather Made in Brazil Cypress Hill Fashion Comfort Sandale http://www.acatostore.de/herren-mens-leather-made-in-brazil-cypress-hill-fashion-comfort-sandale-p-4358.html
Sacs a Dos Femme Tempete coloree Cuir Cartable College Femme Sac a Dos Voyage Cartable Cuir Femme Sac a Dos Portable College Scolaire Ecole Sac Dos http://www.hitechstore.fr/sacs-224-dos-femme-temp234te-color233e-cuir-cartable-college-femme-sac-a-dos-voyage-cartable-cuir-femme-sac-a-dos-portable-college-scolaire-ecole-sac-dos-p-12707.html
HyDry - Botas para hombre http://www.sarstore.es/hydry-botas-para-hombre-p-27251.html
Sponsored Sponsored You’re seeing this ad based on the product’s relevance to your search query. Let us know adidas Ultraboost PB Running Shoes - SS20 http://www.shoesbright.com/sponsored-sponsored-you8217re-seeing-this-ad-based-on-the-product8217s-relevance-to-your-search-query-let-us-know-adidas-ultraboost-pb-running-shoes-ss20-p-1891.html
Frauen Loafers http://www.yoostore.de/frauen-loafers-p-17916.html
Bolsos Bolsos de Mujer Dise?ador Bolsos de Bandolera Para Mujeres Bolso de Hombro Cocodrilo Bolso de Cuero Bolsa Feminina Sac Principal Femme (Vino Tinto) http://www.uastore.es/bolsos-bolsos-de-mujer-dise65311ador-bolsos-de-bandolera-para-mujeres-bolso-de-hombro-cocodrilo-bolso-de-cuero-bolsa-feminina-sac-principal-femme-vino-tinto-p-24380.html
Chameleon 8 Chaussures de randonnee stretch pour homme http://www.hitechstore.fr/chameleon-8-chaussures-de-randonn233e-stretch-pour-homme-p-19860.html
Stivali da Pioggia. Kaki Alto-Alto Stivali da Pioggia Donna Four Seasons High-Slip Antiscivolo Scarpe da Cucina Indossare Stivali da Pioggia Stivali http://www.mdworldstore.it/stivali-da-pioggia-kaki-altoalto-stivali-da-pioggia-donna-four-seasons-highslip-antiscivolo-scarpe-da-cucina-indossare-stivali-da-pioggia-stivali-p-11252.html
Sichuan International Studies University https://www.eastjuntai.com/universities/sichuan-international-studies-university.html
Zapato Double Monk Pala Lisa 994B24-30504 http://www.uastore.es/zapato-double-monk-pala-lisa-994b2430504-p-13937.html
Scarpe da Corsa Sport Moda Casual Scarpe da Ginnastica Tessuto Traspirante Set Pigro di Piedi Calzini Scarpe Moda Scarpe da Ginnastica Scarpe da Uomo (39 EU.Bianca) http://www.sonicstore.it/scarpe-da-corsa-sport-moda-casual-scarpe-da-ginnastica-tessuto-traspirante-set-pigro-di-piedi-calzini-scarpe-moda-scarpe-da-ginnastica-scarpe-da-uomo-39-eubianca-p-4143.html
Women Mini Purse Crossbody of Cell Phone,Elephants Diwali Traditions Sacred Round Sun Illustration Oriental http://www.acatostore.de/women-mini-purse-crossbody-of-cell-phone65292elephants-diwali-traditions-sacred-round-sun-illustration-oriental-p-431.html
Femmes Sandales Rome Plat Decoupe Bottines Boucle Sangle pour Femmes Plate-Forme Plate Bout Ferme Chaussures http://www.deepstore.fr/femmes-sandales-rome-plat-d233coupe-bottines-boucle-sangle-pour-femmes-plateforme-plate-bout-ferm233-chaussures-p-22265.html
Air Cooler https://www.gdszlian.com/air-cooler-2/
Textured Knitted Bootie W/Pile Cuff. Pantofole a Collo Alto Donna http://www.sonicstore.it/textured-knitted-bootie-wpile-cuff-pantofole-a-collo-alto-donna-p-21087.html
Women Mini Purse Crossbody of Cell Phone,Exquisite Skyline On Classical Old Castle Wonder of The World Themed http://www.acatostore.de/women-mini-purse-crossbody-of-cell-phone65292exquisite-skyline-on-classical-old-castle-wonder-of-the-world-themed-p-17586.html
Women Mini Purse Crossbody of Cell Phone,Astronaut In Outer Space Stardust Nebula In Milky Way Cosmonaut Apollo Art http://www.acatostore.de/women-mini-purse-crossbody-of-cell-phone65292astronaut-in-outer-space-stardust-nebula-in-milky-way-cosmonaut-apollo-art-p-7050.html
Kate Spade New York Plaza. Sandales a Talon Femme http://www.hitechstore.fr/kate-spade-new-york-plaza-sandales-224-talon-femme-p-23326.html
12 Micron Pet Film https://www.genzonnmbopet.com/12-micron-pet-film/
Harper 4 Mid Rm - Zapatillas de beisbol para hombre http://www.sarstore.es/harper-4-mid-rm-zapatillas-de-b233isbol-para-hombre-p-71.html
Aluminium Windows https://www.curtainwallchina.com/aluminium-windows/
Atlanta Bottes Hautes Femmes http://www.hitechstore.fr/atlanta-bottes-hautes-femmes-p-2311.html
No_brand Frauentasche , Lederhandtaschen Gro?e Frauentasche Hochwertige Weibliche Umh?ngetaschen Buro L?ssige Vintage Umh?ngetasche Travel Messenger Bags http://www.acatostore.de/nobrand-frauentasche-65292-lederhandtaschen-gro223e-frauentasche-hochwertige-weibliche-umh228ngetaschen-b252ro-l228ssige-vintage-umh228ngetasche-travel-messenger-bags-p-18427.html
CL Renaissance Wide D. Scarpe da Ginnastica. Donna http://www.sonicstore.it/cl-renaissance-wide-d-scarpe-da-ginnastica-donna-p-18557.html
[url=http://www.g82861c5z6yusd7c1z8akp6vf787od96s.org/]uiqtkrrlpjc[/url]
<a href="http://www.g82861c5z6yusd7c1z8akp6vf787od96s.org/">aiqtkrrlpjc</a>
iqtkrrlpjc http://www.g82861c5z6yusd7c1z8akp6vf787od96s.org/