Archive

Posts Tagged ‘utf’

Cgi Programmer Needed For A Quick Fix

December 23rd, 2011 Comments off

This is a cgi/perl task for you…

I have a piece of code that sends an e-mail to the user…

When I try to send the e-mail though, I get strange characters when I view the e-mail.

This is because I use Greek chars in the subject and body of e-mail (utf-8)

What I want is the same code but utf-8 friendly so as to send the messages encoded in utf-8 encoding…

Please let me know when you are ready to start…

DIRECTIONS:
- Open the attached file on this project
- Go to lin…

Mysql Upload & Php Page With Search Function Geopostcodes

December 8th, 2011 Comments off

Greetings,
I purchased the geo postal codes for the Philippines from
http://www.geopostcodes.com
it includes the following :

File Encoding File name
Text delimited UTF-8 GeoPC_PH.csv
Microsoft Excel UTF-8 GeoPC_PH.xls
Unformatted ASCII Text ASCII GeoPC_PH.asc
XML structure UTF-8 GeoPC_PH.xml
MySQL database UTF-8 GeoPC_PH.sql
SQL Server 5 UTF-16 GeoPC_PH.dat
General information PDF Product.pdf
License PDF License.pdf
GeoPC_PH.zip 5.55 Mb / 53.22 Mb

This means that the database i…

Web-based Utf Encoder

December 3rd, 2011 Comments off

Hello,

I need to get a simple copy/paste encoder that can be used as a web based module. It needs to have the latest complex encoding (UTF-8, UTF-16, UTF-32, etc.). Here is a video of one that is exactly what I need.
http://www.youtube.com/watch?v=AfTCtRDsWVw

I need to see an example of it working before purchase. The person would upload and set it up for me on a back page of my domain.

Jack

Convert And Fix Messed Ip.board Sql Database To Utf-8

September 23rd, 2011 Comments off

Hello,
im running an IP.Board with big sql database. Im attaching a snapshot of the database so you can see for Yourself what is the current situation.
I need someone to completely convert it to UTF-8 because at the moment no cyrilic symbol can be displayed.
I need someone who can start and complete this job ASAP (today)

I can provide you a full database export to work on.

Utf 8 Issue WordPress Need Fix

January 3rd, 2010 Comments off

Ever since I updated to WordPress 2.9 I have been getting weird characters – squares and A – on my blog. Someone tried the utf 8 database backup plugin, but it is not supported by 2.9

I need the character set issue fixed ASAP!

Joe

Magento: Curl Inside Pdf Fcall

December 19th, 2009 Comments off

We have added a CURL code snippet to approve affiliate sales when an invoice is created. However it does not seem to work, any idea if this is wrong altogether, or how we can get the right code for including the orderId?

We have almost no way of testing as we have no test envrionment for this. You must have good knowlegde in programming and how these calls to pdf invoice creating works, as it never sees the browser, yet is need to execute the curl (or filegetcontents) for each created invoice/order#. I bet if you know how this works, you don’t even need knowledge of Magento and you can just tell me what i need to do.

Please bid if you know how to fix.

[code]
class Mage_Sales_Model_Order_Pdf_Invoice extends Mage_Sales_Model_Order_Pdf_Abstract
{
public function getPdf($invoices = array())
{
$this->_beforeGetPdf();
$this->_initRenderer('invoice');

$pdf = new Zend_Pdf();
$style = new Zend_Pdf_Style();
$this->_setFontBold($style, 10);

foreach ($invoices as $invoice) {
$page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
$pdf->pages[] = $page;

$order = $invoice->getOrder();

/* Add image */
$this->insertLogo($page, $invoice->getStore());

/* Add address */
$this->insertAddress($page, $invoice->getStore());

/* Add head */
$this->insertOrder($page, $order, Mage::getStoreConfigFlag(self::XML_PATH_SALES_PDF_INVOICE_PUT_ORDER_ID, $order->getStoreId()));

$page->setFillColor(new Zend_Pdf_Color_GrayScale(1));
$this->_setFontRegular($page);
$page->drawText(Mage::helper('sales')->__('Invoice # ') . $invoice->getIncrementId(), 35, 780, 'UTF-8');

/* Add table */
$page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92));
$page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5));
$page->setLineWidth(0.5);

$page->drawRectangle(25, $this->y, 570, $this->y -15);
$this->y -=10;

/* Add table head */
$page->setFillColor(new Zend_Pdf_Color_RGB(0.4, 0.4, 0.4));
$page->drawText(Mage::helper('sales')->__('Product'), 35, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('SKU'), 240, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Price'), 380, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('QTY'), 430, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Tax'), 480, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Subtotal'), 535, $this->y, 'UTF-8');

$this->y -=15;

$page->setFillColor(new Zend_Pdf_Color_GrayScale(0));

/* Add body */
foreach ($invoice->getAllItems() as $item){
if ($item->getOrderItem()->getParentItem()) {
continue;
}

$shift = array();
if ($this->y<15) {
/* Add new table head */
$page = $pdf->newPage(Zend_Pdf_Page::SIZE_A4);
$pdf->pages[] = $page;
$this->y = 800;

$this->_setFontRegular($page);
$page->setFillColor(new Zend_Pdf_Color_RGB(0.93, 0.92, 0.92));
$page->setLineColor(new Zend_Pdf_Color_GrayScale(0.5));
$page->setLineWidth(0.5);
$page->drawRectangle(25, $this->y, 570, $this->y-15);
$this->y -=10;

$page->setFillColor(new Zend_Pdf_Color_RGB(0.4, 0.4, 0.4));
$page->drawText(Mage::helper('sales')->__('Product'), 35, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('SKU'), 240, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Price'), 380, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('QTY'), 430, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Tax'), 480, $this->y, 'UTF-8');
$page->drawText(Mage::helper('sales')->__('Subtotal'), 535, $this->y, 'UTF-8');

$page->setFillColor(new Zend_Pdf_Color_GrayScale(0));
$this->y -=20;
}

/* Draw item */
$this->_drawItem($item, $page, $order);
}

/* Add totals */
$this->insertTotals($page, $invoice);
}

$this->_afterGetPdf();

// START APPROVING COMMISSION:
$ch = curl_init();
$timeout = 10; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://www..com/API/scripts/approve_commission.php');
curl_setopt($ch, CURLOPT_POSTFIELDS, "secret=44ℴ_number=".$order->getOrderId()."");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// END APPROVING COMMISSION

return $pdf;
}
}
[/code]

Categories: Magento, Programming Tags: , , , , , ,

Sample Pg Functions For Utf-8

November 8th, 2009 Comments off

Provide a sample page with functions that are necessary to make a website that is in utf-8, to use for cyrillic language.

-menu with some cyrillic character, some english, and combination of both in one menu option – when click on option goes to that url: yourwebsite.com/samplepg.php?option=$value goes here…
-then refreshed page takes that value and displays the menu again, with the selected option ($value) being displayed as selected –

-currently on website I cannot get the page to acknowledge that this value gotten from the url by $_GET is equal to the value in the menu when the option value is in cyrillic, or a combination of cyrillic and english, and don’t know why – it does work when the whole option value is in English.

-also mysql_query search – using “Select * from….where ” and search for table field that is cyrillic or a combination of cyrillic and English – currently can not get it to work for that, but just for English – but the page does display the cyrillic characters correctly on the webpage when echoing and retrieving from the database using just select *…and no cyrillic characters in the actual query command.

So looking for a page that has these necessary functions/code, so that I can load up on server and if it works, then use syntax to fix bug in website.

Payment upon confirmation that it works.

Solution has to work for any language, which is why using utf-8.

-already have page headers – utf-8
-databases/tables – utf-8

mysql/php website.

Categories: MySQL, PHP Tags: , , , , , ,

Export Excel Csv File Utf-8

October 22nd, 2009 Comments off

I have a csv file being exported in JIS only from PHP
in my Zen Cart Japanese.

I need a way to export it in Excel format.

I found PHPExcel but not sure how to use it.

I have control of my own server.

Regards

Categories: MySQL, PHP Tags: , , , , , ,

Php Includei So-8859-7 To Utf8

September 4th, 2009 Comments off

Need to display a page using Greek Charset=ISO-8859-7 within a script that is using Charset=UTF-8

**** DO NOT BID TILL YOU READ ALL INFO AND SETUP A WORKING SAMPLE PAGE OF THE PHP INCLUDE CODE BELOW!!! ****

The Problem:
This is a sample page of the Greek Charset=ISO-8859-7 page/code
http://www.e-gamos.gr/guide/FirstPage_Headlines_agenda.php

This is a page calling the php include code/page
http://www.e-gamos.gr/guide/index.php
* Look for the “NEWS” box section (center page near the footer)

I need to call the page via php include and still be able to show in the “NEWS” box in the correct format

What I need to see from you:
setup a PHP page using Charset=UTF-8
and add the php include code
to call the url: http://www.e-gamos.gr/guide/FirstPage_Headlines_agenda.php

Your test must be able to display both UTF-8 and ISO-8859-7 (Greek)
Then PM me your test URL for me to review the code live on your server

First coder to do this and make it work on my script will get the project award to them and a super feedback to your SL account

AdSpace

Fix Utf 8 Joomla Problem

September 2nd, 2009 Comments off

Joomla PHP MYSQL

WE have an issue where utf-8 characters are getting displayed wrong. We know its specific to joomla because if we grab the exact same record(s)
on a basic php page and print it out, it looks fine. Obviously using the meta tag
meta http-equiv=”content-type” content=”text/html; charset=utf-8″
is what sets it up to work.

In joomla it has the same tag but it DOESNT work at all.
We are looking for someone to solve the utf-8 display problem

Bear