Solved

image generation of text in charchter set windows-1256

Posted on 2007-11-14
3
198 Views
Last Modified: 2013-12-16
hi all,
please concern  http://q.softwarelab.net/

it's a sample for image  generation  from text in arabic language for a news site
I've some problems
text characters  in arabic must be connected to each other by some rules it's not like english

(the letter in the start of the word have a certain shape and in the middle of the world have a different shape and in and in the en of the word have a third shape)

that's why i'm saying the text shown in arabic under the title:
here is the text I want to generate as image is the right one

while the text generated as image under the title:
here is the image with the bug in image generation

can you please tell me how to solve this problem? if the problem in the font can you please guide me where to find the appropriate fonts?

best regards
HG




0
Comment
Question by:shang3000
  • 2
3 Comments
 
LVL 14

Expert Comment

by:ygoutham
ID: 20279205
why do a convert??? if you comment the convert line and try again what happens???

//$text= iconv("windows-1256", "UTF-8", $text);

i dunno arabic. but looking at the code i was curious to see the conversion and therefore  the suggestion.  
0
 

Author Comment

by:shang3000
ID: 20279866
here is the result when remove the conversion
http://q.softwarelab.net/test2.php

and the original code at
http://q.softwarelab.net
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 500 total points
ID: 20287146
sorry.  then it seems that i am wrong.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now