python - Permalinks with Russian/Cyrillic news articles -
I am working with an old school php CMS based site in Russian, many new tasks requested One of the permalinks is
As of now, the website is only standard non-MVC 'article.php? Id = 50 '. I was browsing and it is actually the only Russian site that I have seen that the native Russian paramilitary was used. I am thinking:
- Is there any limitations regarding the use of characters? Do any type of special setup is required on server-side or any thing?
- In general, what kind of characters should I look for in Parimal link? Do i need any
- Any suggestions on how I should be prevalent in my database? As of now, the table structure is relatively simple .. With just one article table:
ID text_chitel article_assnpip article_hold date_time
I'm about to add a new column Thinking this table has been given the name 'Paramlink' which will basically store a revised version of the article - title (the only character so far that I can think of special treatment is the place that I converted into an underscore Do it I)
- How should I format my new clean URL? I was thinking something like this: For example
/ article / 2002 / primlen_sirinattica
By the way, I am using the piles (A dragon framework) and MySQL 5 though I'm opening to PostgreSQL if there are any strange UTF 8 restrictions (I have changed the whole database which was previously Latin 1 UTF 8 did with the icon).
The current connection is to encode the URL in UTF-8, and then the url-escape (i.e.% - Spacce) them:
py> Urlib.quote (U "article / 200 9 / priselabia_sirandiki". Encode ("UTF-8") 'article / 200 9 %% d 0% 97% d 0% b 0% d 0% b3% d 0% BB% D 0% B 0% D 0% B2% D 0% BD% D 0% 0% 1% 8 F_% D1% 81% D1% 82% D 1% 80% D 0% B After this, there will be no restriction - i.e. the browser should either have it UTF-8 or% d 0% BD% D 0% B8% D1% 86% D 0% B / C>
Or they will definitely be able to follow the link.
Comments
Post a Comment