Latest News: (loading..)

VaM

Members
  • Content count

    11
  • Joined

  • Last visited

1 Follower

About VaM

  • Birthday 10/01/1983

Profile Information

  • Real Name
    Alexandr Menovchicov
  • Location
    Stavropol, Russia
  • Website
  1. djmonkey1 Thanks! iconv works perfectly.
  2. Maybe make this code more simple? For example, use this function (you cad add it to /admin/includes/functions/general.php): function tep_iconv($text) { if (function_exists('iconv')) { return iconv('UTF-8', CHARSET, $text); } else { return $text; } } And this code: 'title' => $new_order_totals[$i]['title'], Change to: 'title' => tep_iconv($new_order_totals[$i]['title']),
  3. djmonkey1 JsHTTPRequest support all encodings and more crossbrowser than XMLHttpRequest. To set encoding you can use: $JsHttpRequest->setEncoding(CHARSET);
  4. djmonkey1 Thanks! And last advice. Maybe use something like this (for users don't have iconv support on they servers): if (function_exist('iconv')) { ....
  5. Or maybe change XMLHttpRequest to another ajax library. For example - JsHttpRequest - http://dklab.ru/lib/JsHttpRequest/ Russian documentation (maybe use babelfish.altavista.com to translate) - http://dklab.ru/lib/JsHttpRequest/manual.html Short english documentation - http://dklab.ru/lib/JsHttpRequest/protocol.html But this way is too hard, i think.
  6. djmonkey1 This is the real problem with encoding. Many and many shops not in utf-8, but XMLHttpRequest works in UTF-8 (order comments, shipping/payment/order total options, all of this info's not readable). Maybe use iconv to convert text CHARSET <-> UTF-8 or something else?!
  7. Ajax Order Editor is excellent! But i have one problem with charset (other than iso-8859-1, for example, problem with russian language charset windows-1251). All content in ajax order editor in UTF-8. For example, i change Shipping method and after reloading input filed with shipping method was filled with new shipping information BUT in UTF-8 encoding, not in windows-1251. How to use CHARSET constant defined in osCommerce ?! I change in /admin/edit_order_ajax.php // output a response header header('Content-type: text/html; charset=ISO-8859-1'); require('includes/application_top.php'); to: require('includes/application_top.php'); // output a response header header('Content-type: text/html; charset='.CHARSET.''); And problem resolved, but not for all ajax order editor. Comments still added in UTF-8 encoding and sending to customer in UTF-8. I wan't to see all information in CHARSET constant (for russian - CHARSET constant = windows-1251) P.S. Sorry for my english, i hope you understand me.
  8. I have total b2b and sale maker installed. Sale maker - http://www.oscommerce.com/community/contri...arch,sale+maker Total b2b works great, but sale maker don't work. How to get working both modules?
  9. How to make non-english charasters(cp1251 - russian) in pdf file which generates on the fly?!