Hi,
I just started using GD and first of all thanks for the great work.
I’m doing translation to Asian languages (Chinese) and found that some pages are displaying characters incorrectly. Check the attachment for the wrong category display on home page and the correct display on detail page.
I was able to track down this category display to
geodirectory-functionsgeneral_functions.php
echo '<li class="' . $class_row . '"><a href="' . $term_link . '">';
echo '<img alt="' . $cat->name . ' icon" class="" style="height:20px;vertical-align:middle;" src="' . $term_icon_url . '"/> ';
echo ucwords($cat->name) . ' (<span class="geodir_term_class geodir_link_span geodir_category_class_' . $post_type . '_' . $cat->term_id . '" >' . $total_post . '</span>) ';
echo '</a></li>';
Here ucwords() might have issues with multi-byte characters. It will try convert the first byte and mess up with UTF multi-byte character.
I did a search of ucwords() and seems like this has been used in quite some scripts. This might be a show stopper for GD when considering any multi-byte translation (typically Asian languages). I’m wondering if there is any plan for fixing or if we can patch it locally as a temporary workaround. Any help is appreciated.
Thank you.