Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2010, 02:26 AM
hochun hochun is offline
 
Join Date: Dec 2009
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Importing product in UTF-8.

Hello, below is attachment of one of my products. XML file is in utf-8 codepage with non-latin symbols (cyryllic). After importing product xml file in admin panel all non-latin symbols replaces on "?".

I will not be surprised if this occurs when file was in windows-1251 charset, I will noe be surprised if this occurs when database has collation different of utf8_general_ci but NOW all is absolutely fine with every settings. Does it the vBulletin problem?

Why by-default vB export all in ISO charset? How I can work with non-latin symbols?

May be not iconv() or mb_convert_encoding() functions used during the import?
Attached Files
File Type: zip wisenotify-vb4.x-v0.1RC2.zip (35.1 KB, 3 views)
Reply With Quote
  #2  
Old 01-28-2010, 07:06 PM
derfelix derfelix is offline
 
Join Date: Nov 2001
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i can only tell you how i imported some russian language files... in utf8 in 3.8 (as I read they didnt change a lot but will only in 4.1 or 4.2)

First, change the heading of the xml file.. back to ISO
<?xml version="1.0" encoding="ISO-8859-1"?>

BUT when you save it.. make sure it stays in UTF8 format (it is now) so dont change that..

(you can see it in your editor.. (when you do save as.. there should be an option with the encoding)

before importing the product, make sure overwrite option is on...

Main problem will be that your default master language is NOT a cyrillic language.. but the phrases imported with the product in masterlanguage are cyrillic..

Set ALL your languages to UTF8, even the english...

All Other languages have to be reimported..
Before reimporting, open them in your favorite editor (I use edit plus but there are lots of free ones out there..) and do a save as.. with encoding set to UTF8 . (dont change the code inside.. just the fileencoding with your editor )
See attached thumbnail..

THEN make sure that ALL languages are set to UTF8 in language manager.

That worked for me...
F.
Attached Images
File Type: gif Image5.gif (33.1 KB, 0 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04143 seconds
  • Memory Usage 2,189KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_attachment
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete