I'm facing a weird actions by codeiginter especially when it comes to using different languages. I had to translate some pages in the system/language/arabic and system/language/japanese as well and changed the chartset to UTF-8in the config.php file, but when I test it through the form validation for example, it gives me ????????? characters as if these languages are not recognized even by the unicode.
any idea how to get around this issue?
Thanks
ok, it urned out that I need to do some trick in here. For Arabic language I had to use unicoding html to make it like symbols then add them to my php or html. and it works perfect. For Japanese language, it is just adjusting unicoding in the config file at codeigniter. And that's it.
Related
We are using QT 5.5 successfully throughout our VC++ projects in VS2015.
Now, i am adding i18n thereto, using QTs Linguist tools to create my strings 2b translated and the resulting .qm files. I load the files through QTranslator object, the translation itself seems to work, but they get displayed wrongly.
As german is my mother tongue, I have to type several umlauts, beside any other special unicode-characters I definitely want to support.
As en example, I use linguist to translate over to über, and the resulting text in my application reads über. What I can surely recognize as an encoding mismatch.
I already had a look on the i18n example, which displays correctly for all of the provided languages, so I right now do not know what's wrong after I checked all file encodings.
Anyone any ideas? Or even has the same problems? Or had them but solved? Any suggestions were greatly appreciated!
This seems to be a Windows-specific problem.
Instead of using QString.toStdString() (what breaks the correct string), better use QString.toLatin1() at least for the languages to support yet.
I have begun working with the Smarty template framework at a new job, something completely new and bewildering to start off with but my previous knowledge of PHP defiantly helped.
I am finding that using Smarty in Dreamweaver CS5 is looking a little bland and have yet to find a way to colour code the smarty tags.
I have been given a Windows 8 PC to work on which may mean that some of the extensions i have found online don't work.
Does anyone know of a way to add these tags into DW and colour code them?
Thanks in advance.
Have you tried any of these two:
http://smartydwt.klitsche.org/
and
https://code.google.com/p/dreamweaver-smarty/
These work but they don't work for me becasue I don't want to change the smarty syntax. The first one makes smarty tags instead of {if $x} into <smart:if $x> (if I remember correctly it has been years since I used it, this was originally made for Macromedia Dreamweaver 2004 or so). And the second one turns it into {{if $x}}
If you just want syntax highlighter/code-coloring look into this:
http://smarty.incutio.com/?page=ConfiguringDreamweaver
I am exhausted searching for the way to integrate LATEX in my codeigniter project. But i cant find any way. In my website I need to insert and show mathematical terms and figures in HTML.
how can i easily do i don't know.If LATEX is the only way what is the easy way to do that.
would you please suggest me a way.
I suggest you save the latex code in the server-side and when you are showing on the website in HTML you can perform the conversion using Pandoc (a universal markup languages conversor).
But I'm not sure if this would work for mathematical symbols. Maybe you need to use another program (eg ImageMagick).
I'm a newbie to SugarCRM development. In my project, I have to generate a pdf for one entity details(say Account details). On details page, I have added "Print PDF" button, upon clicking this button I have one independent script (I mean to say that it was not implemented as per Sugar framework). In this script we are querying database for the required details and building one html string. Using html2pdf library, converting this html string to pdf.
I dont know whether it is an efficient implementation or not, but everything is working fine as per the requirement. But we have one problem when the original string contains some special characters like currency symbols of different countries. We are getting the html fine, but in pdf getting question marks (?) for those special characters.
While trying to fix this issue, when I looked into SugarCRM code, I found some pdf classed inside includes/ directory that creating an impression that Sugar itself has some built-in library to generate pdf's. Is it true?
If that is true, will it solve my problem, i.e. displaying different countries currency symbols in pdf.
Can anybody please help me to in resolving this. Thanks in advance.
-Venkat Nehatha
Venkat, SugarCRM does indeed have its own pdf generation ability. We use it to generate customer orders, quotes, invoices, and statements.
Though I've done some work on the pdf generation myself, I don't think I'm really experienced enough to be able to guide someone else in detail in the use of Sugar's pdf capabilities. I can tell you that we use pdf generation only in our own custom modules, so the files are found in [sugarRoot]/modules/[customModule]/. (You may know that unless you know exactly what you're doing, NEVER modify the main SugarCRM files in the [root]/modules/ folder!) In the previously mentioned custom module folder are two sub-folders, "sugarpdf", which has the code that accesses the modules/database to get the information to write to the pdf, and a "tpls" folder that holds the layout information for the header, body, and footer of the pdf, in HTML format, using the information from the sugarpdf folder's file.
I strongly recommend you visit the SugarCRM developer forums where you will be in touch with many developers much more experienced than me in Sugar.
I hope this helps in some way.
I need syntax highlighting of source code from various languages (PHP, C#, VB, etc) within articles I have in Joomla. I have tried enabling the Geshi plugin, updating the language files and putting the code into my Joomla article - however I can't seem to get it to work.
I have also tried CodeCitation from JED but again, the problem seems to be the same - I don't know how to tell Joomla to process it as code. I placed {codecitation} and {/codecitation} around my code (as well as including the brush value) but it doesn't work. I am unsure if these tags should be placed on the source or the wysiwug
Could someone please assist with an alternative method or work out what I am doing wrong?
With CodeCitation: if you already wrote the article using the tags (i.e. {codecitation} code {/codecitation}), it should work. Did you check if you enable the mambot?
As of Joomla 3.4 Geshi has been removed - but you can still get Geshi+ (geshi repackaged with all the additional languages) - & see the tips here on how to configure geshi.
An example of Geshi+ working is here.
There are now Joomla plugins using highlightjs & google's prettify library to highlight syntax but I found geshi+ worked much better
I am not certain if you can use it in Joomla or not. I use the syntax highlighter by Alex Gorbatchev. I have used it in a couple of blogs (wordpress for instance) and in some stand alone web pages. Not hard to intergrate. It uses the 'pre' tags. You need to be sure the code is already escaped. It may be worth a look. Here is a link.
http://alexgorbatchev.com/SyntaxHighlighter/
Hope this helps.
Bob