html - Image path, src diacritics, php -
edit 1: have created new laravel project blank 1 , diacritics doesn't work, meta char included.
html code:
<div class="row"> @foreach ($tagnames $tagname) <div class="col-sm-4"> <p>{{$tagname->tagname}}</p> <img style="min-width:35%; min-height:35%"; class="img-responsive"; src="images/{{$tagname->tagname}}.jpg"> </div> @endforeach </div>
everything works fine getting images until path name has diacritics (romanian ones î,â,ț,ă,ș), tried adding
<img style="min-width:35%; min-height:35%"; class="img-responsive"; src="images/dude1withî.jpg">
and doesn't work too.
<meta charset="utf-8">
is added doesn't anything.
examples of images stored in images folder:
măr.png, pîine.png, pastă.png , on
how can solve this? given appreciated.
if images directory placed in laravel root update code below asset() function. try,
<img style="min-width:35%; min-height:35%"; class="img-responsive"; src="{{ asset('images/dude1withî.jpg') }}" />
will work. thanks.
Comments
Post a Comment